/*=================================================
    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: #FDB431;
}

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

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

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

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

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

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

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

/*.hero {*/
/*  background: url("../images/kityo-members.jpg") center center/cover;*/
/*  height: 90vh;*/
/*  position: relative;*/
/*}*/
.hero {
  background: url("../images/Hon-Sarah-Kityo.jpeg") no-repeat;
  background-size: cover;
  background-position: center 35%; /* Move image upward */
  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;
}

.cards-leadership {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* Tablet */
@media (max-width: 992px) {
    .cards-leadership {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .cards-leadership {
        grid-template-columns: 1fr;
    }
}


.cards-vim {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* Tablet */
@media (max-width: 992px) {
    .cards-vim {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .cards-vim {
        grid-template-columns: 1fr;
    }
}


.cards-philosophy {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* Tablet */
@media (max-width: 992px) {
    .cards-philosophy {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .cards-philosophy {
        grid-template-columns: 1fr;
    }
}

.leadership-description {
  text-align: justify;
}

.leadership-head {
  text-align: center;
}


.cards-donation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* Tablet */
@media (max-width: 992px) {
    .cards-donation {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .cards-donation {
        grid-template-columns: 1fr;
    }
}

.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: 260px;

  width: 100%;

  object-fit: cover;
}

.card i {
  font-size: 55px;

  color: #555555;

  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;
}

.welcome-kityo {
  background: #F8F9FB;
}
.issue {
  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: #131313;

  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: 50vh;
  }

  .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: #FDB431;
  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: #FDB431;
  transform: translateY(-2px);
}

/* =========================
   DROPDOWN MENU
========================= */

nav ul li {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  z-index: 999;
  flex-direction: column;
  padding: 10px 0;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  display: block;
  padding: 5px 5px;
  color: #333;
  font-weight: 500;
}

.dropdown-menu li a:hover {
  background: #FDB431;
  color: #fff;
}

/* Show dropdown on hover (desktop) */
.dropdown:hover .dropdown-menu {
  display: flex;
  flex-direction: column;
}

/* Mobile fix */
@media (max-width: 900px) {
  .dropdown-menu {
    position: relative;
    box-shadow: none;
    background: transparent;
    padding-left: 15px;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: flex;
    flex-direction: column;
  }
}

.about-diocese {
  background: #f8fafc;
  text-align: center;
}

.about-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

/*Submenu dropdown */
@media (max-width: 900px) {
  .dropdown-menu {
    width: 100%;
  }

  .dropdown-menu li {
    width: 100%;
  }

  .dropdown-menu li a {
    width: 100%;
  }
}

/*============================
SOCIAL MEDIA
=============================*/

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all .3s ease;
}

.social-icons a:hover {
    background: #FDB431;
    color: #fff;
    transform: translateY(-4px);
}

.support {
  text-align: center;
}
.support-donation-details {
    text-align: center;
}
@media (max-width: 600px) {
  .welcome-kityo .issue {
    text-align: justify;
    text-justify: inter-word; /* improves spacing in supported browsers */
  }
  .support {
       text-align: justify;
  }
  .support-donation-details {
         text-align: justify;
  }
}