* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

/* body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #ffdf5855;
} */

/* ================================
   KIVULI CHILDREN'S HOME TYPOGRAPHY
   Pairing: Playfair Display + Lato
=================================== */

/* Import Google Fonts */

/* Base Typography */
body {
  font-family: "Lato", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #ffdf5855;
  margin: 0;
  padding: 0;
}

li,
p,
a {
  font-family: "Lato", sans-serif;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.count {
  font-family: "Playfair Display", serif;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
}

h5 {
  font-size: 1.1rem;
  font-weight: 500;
}

h6 {
  font-size: 1rem;
  font-weight: 500;
}

/* Paragraphs & General Text */
p {
  margin-bottom: 1.2em;
  font-weight: 400;
  /* color: #444; */
}

strong {
  font-weight: 700;
}

/* Links */
a {
  /* color: #d48a00; */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: #b57300;
  /* text-decoration: underline;  */
}

/* Buttons */
button,
.btn,
input[type="submit"] {
  font-family: "Lato", sans-serif;
  background-color: #d48a00;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.75em 1.5em;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover,
.btn:hover,
input[type="submit"]:hover {
  background-color: #b57300;
  transform: translateY(-2px);
}

button:active,
.btn:active {
  transform: translateY(0);
}

/* Utility Classes */
.text-accent {
  color: #d48a00;
  font-weight: 600;
}

.text-muted {
  color: #777;
}

blockquote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  border-left: 4px solid #d48a00;
  padding-left: 1rem;
  color: #555;
  margin: 1.5em 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}
.flex {
  display: flex;
  gap: 0.8rem;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.btn {
  background: #7877b8;
  color: #fff !important;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}
.btn:hover {
  background: #7877b8;
}

/* Active navigation link indicator */
.act-a {
  position: relative;
  /* display: inline-block; */
  color: #6e6d05 !important; /* active text color */
  font-weight: 600;
  text-decoration: none;
}

.act-a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px; /* space below the text */
  width: 100%;
  height: 0.8px;
  background-color: #7877b8;
  border-radius: 2px;
}

/* Hero */
.hero {
  background-size: cover;
  background-position: top;
  background-attachment: fixed;
  height: 80vh;
  color: #fff;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}
.hero-text {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: center;
}
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* About Section */
.about-preview {
  align-items: center;
  flex-wrap: wrap;
  padding: 3rem 0;
}
.about-preview img {
  width: 50%;
  border-radius: 10px;
}
.about-text {
  flex: 1;
}

/* CTA */
.cta {
  background: #f1f9f1;
  padding: 3rem 0;
  margin: 2em 0em;
}
.cta h2 {
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .flex {
    flex-direction: column;
    align-items: center;
  }
  .about-preview img {
    width: 100%;
  }
  .hero h2 {
    font-size: 2rem;
  }
}

.page-hero {
  background-size: cover;
  background-position: bottom center;
  background: #f5f8f5;
  min-height: 40vh;
  text-align: center;
  padding: 3rem 1rem;
  color: #7877b8;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.page-hero .hero-text {
  max-width: 800px;
}

.about-details,
.contact,
.donate {
  gap: 2rem;
  padding: 3rem 0;
}

.about-details ul {
  list-style: disc inside;
  margin-top: 0.5rem;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
}

.story {
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.story img {
  width: 45%;
  border-radius: 10px;
}

.story-text {
  flex: 1;
}

.get-involved {
  margin-top: 2em;
  margin-bottom: 2em;
  width: 100% !important;
}

.option-card {
  flex: 1;
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}
.option-card h3 {
  color: #7877b8;
  margin-bottom: 1rem;
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.contact-info a {
  color: #7877b8;
  text-decoration: none;
}
.contact-info a:hover {
  text-decoration: underline;
}

.donate-text {
  flex: 1;
}
.donate-image img {
  width: 100%;
  border-radius: 10px;
  max-width: 500px;
}

@media (max-width: 768px) {
  .story img,
  .donate-image img {
    width: 100%;
  }
  .option-card {
    width: 100%;
  }
}

.contact-section {
  background-color: #fafafa;
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #222;
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #555;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.contact-info {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  transition: transform 0.3s ease;
}
.contact-info:hover {
  transform: translateY(-5px);
}
.contact-info h3 {
  color: #333;
  margin-bottom: 0.5rem;
}
.contact-info p {
  color: #555;
  line-height: 1.6;
}
.contact-info a {
  color: #4e54c8;
  text-decoration: none;
}
.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}
.contact-form h3 {
  color: #333;
  margin-bottom: 1rem;
}
.form-group {
  margin-bottom: 1rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #4e54c8;
  outline: none;
}
.btn {
  background: #4e54c8;
  color: #fff;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.btn:hover {
  background: #6c63ff;
}

/* Map styling */
.map-wrapper {
  margin-top: 3rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.map-wrapper iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-section {
    padding: 3rem 1rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Intro Section */
.intro {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 4rem 1rem;
  text-align: center;
}

.intro-text {
  max-width: 800px;
  margin: 0 auto;
}

.intro-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.intro-card {
  flex: 1 1 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.intro-card h3 {
  margin-bottom: 0.5rem;
  color: #2a4d69;
}

.intro-card span {
  display: inline-block;
  margin-top: 1rem;
  color: #7877b8;
  font-weight: bold;
}

/* Impact Stats */
.impact-stats {
  text-align: center;
  padding: 80px 20px;
  background: #f9fafb;
}

.impact-stats h2 {
  font-size: 2em;
  margin-bottom: 40px;
  color: #2b3a42;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.stat-item {
  flex: 1 1 200px;
  max-width: 220px;
  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item .count {
  font-size: 2.5em;
  font-weight: 700;
  color: #7877b8;
  margin-bottom: 10px;
}

/* Page Hero */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: bottom;
  background-attachment: fixed;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.page-hero .overlay {
  background: rgba(0, 0, 0, 0.4);
  padding: 60px;
  text-align: center;
  width: 100%;
}
.page-hero h1 {
  font-size: 2.5em;
  color: #fff;
}

/* Intro Text */
.page-intro {
  text-align: center;
  margin: 60px auto;
  max-width: 800px;
  color: #555;
  font-size: 1.1em;
}

/* Stories Grid */
.stories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-bottom: 80px;
}

.story-card {
  flex: 1 1 300px;
  max-width: 350px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.story-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.story-content {
  padding: 20px;
}

.story-content h3 {
  margin-bottom: 10px;
  color: #7877b8;
}

.story-content p {
  color: #555;
  font-size: 0.95em;
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Impact Legacy Section */
.impact-legacy {
  background: #111;
  color: #fff;
  padding: 80px 20px;
}

.impact-legacy-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.impact-legacy-text {
  flex: 1 1 450px;
}

.impact-legacy-text h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #fff;
}

.impact-legacy-text p {
  font-size: 1.05em;
  line-height: 1.7;
  color: #ddd;
}

.impact-legacy-image {
  flex: 1 1 400px;
}

.impact-legacy-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
  .impact-legacy-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .impact-legacy-text {
    max-width: 600px;
  }
}

/* Impact Gallery Marquee */
.impact-gallery {
  padding: 80px 0;
  background: #f9fafb;
  text-align: center;
  overflow: hidden;
}

.impact-gallery h2 {
  margin-bottom: 40px;
  font-size: 2em;
  color: #2b3a42;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: calc(250px * 12); /* adjust based on number of images */
  animation: scroll 40s linear infinite;
}

.marquee-item {
  flex: 0 0 250px;
  margin: 0 15px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.marquee-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

/* Subtle lift and glow on hover */
.marquee-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Continuous scroll animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .marquee-item {
    flex: 0 0 180px;
  }
  .marquee-track {
    animation: scroll 35s linear infinite;
  }
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* Team Section */
.team-section {
  padding: 60px 0;
}
.team-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 36px;
}
.team-header h2 {
  font-size: 2em;
  color: #223a34;
  margin-bottom: 8px;
}
.team-header p {
  color: #58666a;
  font-size: 1.02rem;
}

/* Grid */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}

/* Card */
.member-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  max-width: 280px;
  box-shadow: 0 10px 30px rgba(34, 58, 52, 0.08),
    0 4px 10px rgba(34, 58, 52, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}
.member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(34, 58, 52, 0.12),
    0 8px 18px rgba(34, 58, 52, 0.06);
}

/* Photo */
.member-photo {
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #f0f2f1;
}
.member-photo img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.member-card:hover .member-photo img {
  transform: scale(1.04);
}

/* Body */
.member-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.member-body h3 {
  font-size: 1.05rem;
  margin: 0;
  color: #123a33;
}
.member-role {
  font-size: 0.9rem;
  color: #2f6b63;
  font-weight: 600;
  margin-top: 2px;
}
.member-bio {
  color: #495d5a;
  font-size: 0.95rem;
  line-height: 1.45;
  min-height: 64px;
}

/* read-more link style */
.btn-link {
  align-self: flex-start;
  background: transparent;
  border: none;
  color: #0b7b6f;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-top: 6px;
}
.btn-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (min-width: 992px) {
  .team-grid {
    gap: 34px;
  }
  .member-card {
    max-width: 320px;
  }
}
@media (max-width: 640px) {
  .member-photo {
    height: 180px;
  }
  .member-bio {
    min-height: auto;
  }
}

.footer {
  background: #111;
  color: #eee;
  padding-top: 4rem;
  font-family: "Lato", sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.footer-logo {
  width: 130px;
  margin-bottom: 1rem;
}

.footer-message {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #ccc;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: #f9d342;
}

.footer-contact p {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.6;
}
.footer-contact a {
  color: #f9d342;
  text-decoration: none;
}
.footer-contact a:hover {
  text-decoration: underline;
}

.footer-social p {
  color: #ccc;
  margin-bottom: 1rem;
}
.footer-btn {
  display: inline-block;
  background: #f9d342;
  color: #111;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}
.footer-btn:hover {
  background: #ffd65c;
}

.social-icons {
  margin-top: 1rem;
}
.social-icons a {
  color: #ccc;
  margin-right: 0.8rem;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}
.social-icons a:hover {
  color: #f9d342;
}

/* Bottom section */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
}

.footer-bottom a {
  text-decoration: none;
  color: wheat;
  font-weight: 300;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer {
    padding-top: 3rem;
  }
  .footer-logo {
    width: 100px;
  }
  .footer-message {
    font-size: 0.9rem;
  }
}

/* Partnership Section */
.footer-partnership {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding: 1.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1.5rem;
  background: #0d0d0d;
  color: #bbb;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-partnership .acci-logo {
  width: 100px;
  height: auto;
  flex-shrink: 0;
  border-radius: 5px;
  background: #fff;
  padding: 6px;
}

.footer-partnership p {
  max-width: 800px;
  margin: 0;
}

.footer-partnership strong {
  color: #f9d342;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-partnership {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-partnership .acci-logo {
    margin-bottom: 1rem;
  }
}

/* === Newsletters Page === */
.newsletter-hero {
  background: linear-gradient(to right, #222, #333);
  color: #fff;
  padding: 5rem 0 3rem;
  text-align: center;
}
.newsletter-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.newsletter-hero p {
  color: #ddd;
  font-size: 1rem;
}

.newsletters {
  padding: 4rem 0;
}
.newsletter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.newsletter-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.newsletter-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.newsletter-thumb img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}
.newsletter-info {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.newsletter-info h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #222;
}
.btn-outline {
  border: 1.5px solid #444;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  color: #444;
  text-align: center;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: #444;
  color: #fff;
}

.past-news {
  margin-top: 3rem;
  text-align: center;
}
.past-news h3 {
  margin-bottom: 0.5rem;
}

/* Subscribe section */
.newsletter-subscribe {
  background: #f9f9f9;
  padding: 4rem 0;
  text-align: center;
}
.subscribe-box h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.subscribe-box p {
  margin-bottom: 1.5rem;
  color: #666;
}
.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.subscribe-form input {
  padding: 0.8rem 1rem;
  border-radius: 25px;
  border: 1px solid #ccc;
  width: 280px;
  font-size: 1rem;
}
.subscribe-form .btn {
  background: #222;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.subscribe-form .btn:hover {
  background: #444;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .newsletter-hero h1 {
    font-size: 1.8rem;
  }
  .subscribe-form input {
    width: 100%;
  }
}

.news {
  padding: 4rem 0;
}

.news .intro {
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
}

.news-category {
  margin: 2.5rem 0 1rem;
  font-size: 1.5rem;
  border-left: 4px solid #7877b8;
  padding-left: 1rem;
  color: #333;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top;
}

.news-body {
  padding: 1rem 1.2rem;
}

.news-body h4 {
  color: #333;
  margin-bottom: 0.4rem;
}

.news-meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.6rem;
}

.btn.small {
  display: inline-block;
  background-color: #7877b8;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
}

.btn.small:hover {
  background-color: #5e5da8;
}

/* === News Filter === */
.news-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: #f2f2f8;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #555;
}

.filter-btn.active,
.filter-btn:hover {
  background: #7877b8;
  color: #fff;
  box-shadow: 0 4px 10px rgba(120, 119, 184, 0.3);
}

/* === Smooth Appearance === */
.news-card {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.news-card.hide {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

/* ===== News Single Page ===== */
.news-single {
  padding: 60px 20px;
  background-color: #fafafa;
}

.news-single .container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.news-title {
  font-size: 2.2em;
  color: #333;
  margin-bottom: 10px;
  font-weight: 700;
}

.news-meta {
  color: #777;
  font-size: 0.95em;
  margin-bottom: 25px;
}

.news-category {
  background: #eef5ff;
  color: #0056b3;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.85em;
}

.news-image {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  padding: 10px;
}

.news-image img {
  width: 100%;
  height: auto;
  object-fit: contain; /* prevents cropping */
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.news-image img:hover {
  transform: scale(1.02);
}

.news-content {
  color: #444;
  line-height: 1.8;
  font-size: 1.05em;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.back-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

.share a {
  display: inline-block;
  margin-left: 10px;
}

.share img {
  width: 22px;
  height: 22px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.share img:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
  .news-single .container {
    padding: 25px;
  }

  .news-title {
    font-size: 1.8em;
  }

  .news-content {
    font-size: 1em;
  }
}

/* ===== GALLERY PAGE ===== */
.gallery-page {
  padding: 80px 20px;
  background: #f9fafc;
}

.gallery-page .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.section-subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox overlay tweaks */
.glightbox-clean .gslide-description {
  font-size: 0.9rem;
  color: #f5f5f5;
  text-align: center;
  margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
  }
}

/* ===== DONATE PAGE ===== */

/* Hero Section */
.page-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("../images/children.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.page-hero .hero-text {
  max-width: 800px;
}

.hero-text p {
  background-color: #00000077;
}

.page-hero h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.page-hero p {
  font-size: 1.15rem;
  line-height: 1.7;
  opacity: 0.95;
}

/* Donation Section */
.donate-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 80px 0;
  flex-wrap: wrap;
}

.donate-section .donate-text {
  flex: 1 1 48%;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.donate-section .donate-text p {
  margin-bottom: 1.2rem;
}

.donate-section .donate-text strong {
  color: #444;
}

.donate-section .donate-text .btn {
  display: inline-block;
  background-color: #1f3b73;
  color: #fff;
  padding: 12px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.donate-section .donate-text .btn:hover {
  background-color: #274a91;
  transform: translateY(-2px);
}

.donate-section .donate-image {
  flex: 1 1 45%;
  text-align: center;
}

.donate-section .donate-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  transition: transform 0.4s ease;
}

.donate-section .donate-image img:hover {
  transform: scale(1.03);
}

/* Responsive Design */
@media (max-width: 900px) {
  .donate-section {
    flex-direction: column-reverse;
    text-align: center;
  }

  .donate-section .donate-text,
  .donate-section .donate-image {
    flex: 1 1 100%;
  }

  .donate-section .donate-text .btn {
    margin-top: 1rem;
  }

  .page-hero h2 {
    font-size: 2rem;
  }

  .page-hero p {
    font-size: 1rem;
  }
}

@media (max-width: 500px) {
  .page-hero {
    padding: 80px 15px;
  }

  .donate-section {
    padding: 60px 15px;
  }

  .donate-section .donate-text {
    font-size: 1rem;
  }
}

/* Gift Catalogue Section */
.gift-catalogue {
  padding: 4rem 1.5rem;
  background: #fafafa;
  text-align: center;
  font-family: "Lato", sans-serif;
}

.gift-header h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.gift-header p {
  color: #555;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  font-size: 1rem;
  line-height: 1.6;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.gift-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 320px;
}

.gift-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gift-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.gift-content {
  padding: 1.5rem;
}

.gift-content h3 {
  color: #222;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.gift-content p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: 80px;
}

.gift-price {
  background: #7b68ee;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 25px;
  margin: 1rem 0;
}

.gift-btn {
  display: inline-block;
  background: #f9d342;
  color: #111;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}

.gift-btn:hover {
  background: #ffd65c;
  color: #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gift-header h2 {
    font-size: 1.7rem;
  }

  .gift-content p {
    min-height: auto;
  }
}

/* Navbar */
.navbar {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
}

.logo {
  color: #7877b8;
  font-weight: bold;
  font-size: 1.3em;
}

.nav-logo {
  height: 70px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  transition: all 0.3s ease;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  padding: 0.5rem;
  font-weight: 500;
  position: relative;
}

.nav-links li a:hover {
  color: #7877b8;
}

/* Active page underline */
.nav-links li a.act-a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: #7877b8;
  border-radius: 2px;
}

/* ========== Mobile Styles ========== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 22px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #7877b8;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Tablet & below */
@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid #eee;
  }

  .nav-links.show {
    max-height: 600px; /* enough to show all items */
    padding: 1rem 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f3f3;
  }

  .nav-toggle {
    display: flex;
  }

  /* Animate toggle into “X” */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Programs Section */
.programs-section {
  background: #fafafa;
  padding: 4rem 1rem;
  text-align: center;
}

.programs-section .section-title {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 0.5rem;
}

.programs-section .section-intro {
  font-family: "Lato", sans-serif;
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.program-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.program-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.program-content {
  padding: 1.5rem;
}

.program-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: #7877b8;
  margin-bottom: 0.8rem;
}

.program-content p {
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.hashtags {
  font-size: 0.9rem;
  color: #7877b8;
  font-weight: 500;
  font-style: italic;
}

/* Donate Button */
.program-donate {
  margin-top: 1rem;
}

.donate-btn {
  background-color: #7877b8;
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-family: "Lato", sans-serif;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.donate-btn:hover {
  background-color: #5f5fa3;
  transform: translateY(-2px);
}
