/* Reset */
*,*::before,*::after{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: white;
  transition: background-image 1s ease-in-out;
}

/* Header */
header {
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  text-align: center;
}

.logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.logo {
  width: 60px;
  height: 60px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

nav ul li {
  margin: 0 15px;
  position: relative;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
}
/* Navigation bar container */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  position: relative;
}

/* Dropdown parent */
.dropdown {
  position: relative;
}

/* Dropdown list */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* show just below parent */
  left: 0;
  background-color: rgba(0, 0, 0, 0.85);
  min-width: 160px;
  z-index: 1000;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Individual dropdown items */
.dropdown-content li {
  padding: 10px;
}

.dropdown-content li a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 5px 10px;
}

.dropdown-content li:hover {
  background-color: #444;
}

.nav-icon{
  width: 24px;      /* chagua 20‑30 px kulingana na urefu wa navbar */
  height: 24px;
  filter: invert(100%); /* geuza iwe nyeupe juu ya bg nyeusi */
  transition: opacity .2s;
}

.icon-link:hover .nav-icon{
  opacity: .8;      /* ki‑hover effect ndogo */
}

/* Main Layout */
main {
  display: flex;
  padding: 30px;
}


.caption {
  font-size: 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px;
  border-radius: 10px;
  margin-top: 5px;
}

/* Content */
.content {
  flex-grow: 1;
  background: rgba(80, 69, 17, 0.6);
  padding: 20px;
  border-radius: 10px;
}

.content:hover{
  transform: translateY(-30px); /* "lift" effect */
      }
.leaders-section {
  padding: 50px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.leaders-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #333;
}

.leaders-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.leader-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 15px;
  width: 250px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.leader-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
}

.leader-card h3 {
  margin: 15px 0 10px;
  font-size: 1.2rem;
  color: #2c3e50;
}

.leader-card p {
  font-size: 0.95rem;
  color: #555;
}




    /* Slideshow container */
    .slideshow-container {
      position: bounce;
      bottom: 20px;
      right: 20px;
      width: 400px;
      height: 400px;
      overflow: hidden;
      border-radius: 10px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
      z-index: 999;
      animation: bounce 3s ease-in-out infinite;
    }

    /* Slideshow images */
    .slideshow-container img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: none;
      border-radius: 1px;
    }

    .slideshow-container img.active {
      display: block;
    }


  
  /* Footer */
footer {
  background: rgba(8, 1, 14, 0.904);
  padding: 15px;
  text-align: center;
  margin-top: 30px;
}

footer img {
  width: 30px;
  margin: 0 10px;
}

.button{
  align-content: center;
  position: absolute;
}

.fb-live-btn {
  display: inline-block;
  background-color: #1877F2; /* Facebook Blue */
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  padding: 24px 45px;
  border-radius: 8px;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fb-live-btn:hover {
  background-color: #145dbf;
  transform: scale(1.03);
  cursor: pointer;
}


.whats-new {
  padding: 50px 20px;
  background-color: #111;
  color: #fff;
  text-align: center;
}

.whats-new h2 {
  font-size: 2.5rem;
  color: #FFD700;
  margin-bottom: 30px;
}

.event-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.event-card {
  background-color: #222;
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(255,255,255,0.1);
}

.event-card h3 {
  margin-bottom: 10px;
  color: #FFD700;
}

.event-card .event-date {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 10px;
}

.event-card .event-desc {
  font-size: 1rem;
  line-height: 1.4;
}

.page-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: auto;
  min-height: 80vh;
  padding: 40px;
  background-color: antiquewhite;
}

.church-name {
  text-align: center;
  font-size: 3rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 40px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 30px;
}

.box {
  width: 45%;
  font-size: 1.1rem;
  color: #444;
}

.right-align {
  text-align: right;
}

@media (max-width: 768px) {
  .row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .box {
    width: 100%;
    margin: 10px 0;
  }

  .right-align {
    text-align: center;
  }
}




