/*=================================================
    GRAND NGO WEBSITE
    Evolution of Rural Poor Communities of Uganda
==================================================*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f7f9fb;
  color: #333;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/*============================
HEADER
=============================*/

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding:-48px 0; */
}

/* .logo h2{
    color:#0f7b38;
    font-size:32px;
    font-weight:700;
}

.logo p{
    font-size:12px;
    color:#777;
} */

/*============================
NAVIGATION
=============================*/

nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  gap: 25px;
}

nav ul li a {
  color: #222;
  font-weight: 500;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #cd1b1b;
}

/* Active Page */
nav ul li a.active {
  color: #d32f2f;
  font-weight: 600;
}

.menu a.active {
  color: #d32f2f;
  font-weight: bold;
}

.menu-btn {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/*============================
BUTTONS
=============================*/

.btn {
  display: inline-block;
  background: #cd1b1b;
  color: #fff;
  padding: 14px 30px;
  border-radius: 6px;
  transition: 0.3s;
  margin-top: 20px;
  font-weight: 600;
}

.btn:hover {
  background: #cd1b1b;
  transform: translateY(-3px);
}

/*============================
HERO
=============================*/

.hero {
  background: url("../images/bh.jpg") center center/cover;
  height: 90vh;
  position: relative;
}

.overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);

  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  color: #fff;
  text-align: center;
  width: 70%;
}

.hero-content h1 {
  font-size: 58px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 20px;
}

/*============================
SECTION TITLES
=============================*/

section {
  padding: 80px 0;
}

section h2 {
  text-align: center;
  margin-bottom: 25px;
  color: black;
  /* color:#0f7b38; */
  font-size: 36px;
}

section > p {
  text-align: center;
}

/*============================
CARDS
=============================*/

.cards {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 30px;

  margin-top: 50px;
}

.card {
  background: #fff;

  border-radius: 10px;

  overflow: hidden;

  text-align: center;

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);

  transition: 0.4s;
}

.card:hover {
  transform: translateY(-10px);
}

.card img {
  height: 220px;

  width: 100%;

  object-fit: cover;
}

.card i {
  font-size: 55px;

  color: #0f7b38;

  margin-top: 35px;
}

.card h3 {
  margin: 20px 0 15px;
}

.card p {
  padding: 0 20px 20px;
}

.card .btn {
  margin-bottom: 30px;
}

/*============================
WELCOME
=============================*/

.welcome {
  background: #fff;
}

.welcome p {
  max-width: 900px;

  margin: auto;

  text-align: center;
}

/*============================
SERVICES
=============================*/

.services-preview {
  background: #eef7ef;
}

/*============================
DONATION
=============================*/

.donations {
  background: #fff;
}

.donations h2 {
  margin-bottom: 10px;
}

.donations .card h2 {
  color: #d69d00;

  margin-top: 15px;
}

.donations .card p {
  color: #777;
}

/*============================
FOOTER
=============================*/

footer {
  background: #0d1d13;

  color: #fff;

  margin-top: 80px;
}

.footer-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 40px;

  padding: 60px 0;
}

footer h2,
footer h3 {
  margin-bottom: 20px;
}

footer ul li {
  margin-bottom: 10px;
}

footer ul li a {
  color: #ddd;
}

footer ul li a:hover {
  color: #fff;
}

footer p {
  color: #ddd;
}

.copyright {
  text-align: center;

  padding: 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/*============================
HOVER EFFECTS
=============================*/

.card:hover img {
  transform: scale(1.05);

  transition: 0.5s;
}

.card img {
  transition: 0.5s;
}

/*============================
RESPONSIVE
=============================*/

@media (max-width: 900px) {
  .hero-content {
    width: 90%;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  nav ul {
    display: none;

    position: absolute;

    top: 85px;

    right: 20px;

    background: #fff;

    width: 260px;

    padding: 20px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);

    border-radius: 8px;

    flex-direction: column;
  }

  nav ul.show {
    display: flex;
  }

  .menu-btn {
    display: block;
  }
}

@media (max-width: 600px) {
  /* .logo h2{

font-size:24px;

}

.logo p{

display:none;

} */

  .hero {
    height: 75vh;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 17px;
  }

  section {
    padding: 60px 0;
  }

  section h2 {
    font-size: 28px;
  }

  .btn {
    padding: 12px 22px;
  }
}

/* =========================
   NAV DONATE BUTTON
========================= */

.nav-donate-btn {
  background: #cd1b1b;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  margin-left: 15px;
  margin-right: 15px;
  transition: 0.3s;
  display: inline-block;
}

.nav-donate-btn:hover {
  background: #cd1b1b;
  transform: translateY(-2px);
}

/* Hide button on mobile (optional) */
/* @media(max-width:900px){
    .nav-donate-btn{
        display:none;
    }

    .mobile-donate a{
    background:#d69d00;
    color:#fff;
    padding:10px;
    border-radius:6px;
    display:block;
    text-align:center;
    margin-top:10px;
}
} */
