/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f9fafb;
  color: #333;
}
nav {
  width: 100%;
  background: #005825;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img.logo-img {
   border-radius: 20%;
  height: 50px;
  width: auto;
  object-fit: contain;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

/* Hover underline */
nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #FFD700;
  transition: width 0.3s;
}
nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

/* Hamburger menu (hidden on desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px 0;
  transition: 0.3s;
}

/* Mobile view */
@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: #00732a;
    width: 220px;
    height: 100vh;
    padding: 2rem 1rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
  }

  nav ul.active { right: 0; }

  .menu-toggle { display: flex; }
}

/* Toggle animation (X) */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}







/* ===== Base / Reset ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: #0f172a; background: #f8fafc; line-height: 1.6; }

/* ===== Hero ===== */
.hero {
  background: radial-gradient(1200px 600px at 10% -10%, #245409 0%, transparent 50%),
              linear-gradient(90deg, #055308 0%, #015936 50%, #02320d 100%);
  color: #fff;
}
.hero__inner { max-width: 1200px; margin: 0 auto; padding: 72px 20px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 1rem + 3vw, 3rem); margin: 0 0 8px; letter-spacing: -0.02em; }
.hero p { opacity: 0.95; margin: 0; }

/* ===== Layout ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 48px 20px; }

/* ===== Section Accents (per category) ===== */
.leaders-section { --accent: #001006; --accent-bg: #e0f2fe; margin-bottom: 56px; }
.leaders-section h2 { text-align: center; font-size: clamp(1.4rem, 1rem + 1vw, 2rem); color: #0f172a; margin: 0 0 8px; }
.section-intro { text-align: center; color: #475569; margin: 0 auto 28px; max-width: 820px; }

.leaders-section.executive  { --accent: #004c0b; --accent-bg: #e0ecff; }
.leaders-section.constituency { --accent: #079500; --accent-bg: #e0f7ff; }
.leaders-section.ward      { --accent: #10b981; --accent-bg: #e7fff6; }
.leaders-section.committee { --accent: #f59e0b; --accent-bg: #fff4e0; }
.leaders-section.advisors  { --accent: #9333ea; --accent-bg: #f3e8ff; }

/* ===== Grid ===== */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

/* ===== Card ===== */
.leader-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 18px 20px;
  position: relative;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.leader-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px; /* ring thickness */
  background: linear-gradient(120deg, var(--accent), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.leader-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.12);
}

/* ===== Avatar (image) ===== */
.avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  margin: 6px auto 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 20px rgba(2,6,23,0.15);
  outline: 4px solid var(--accent-bg);
  transition: outline-color 220ms ease, transform 220ms ease;
}
.avatar img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform 300ms ease;
}
.leader-card:hover .avatar { outline-color: var(--accent); transform: translateY(-2px); }
.leader-card:hover .avatar img { transform: scale(1.1) rotate(1.5deg); }

/* ===== Text ===== */
.name {
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  margin: 0 0 4px;
}
.role {
  display: inline-block;
  text-align: center;
  color: #334155;
  font-size: 0.92rem;
}
.badge {
  margin-top: 2px;
  background: var(--accent-bg);
  color: #0f172a;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}



/* ===== Responsiveness ===== */
@media (max-width: 640px) {
  .leaders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .leaders-grid { grid-template-columns: 1fr; }
}



/* ===== Ward Results Section ===== */
.ward-results {
  --accent: #10b981;
  --accent-bg: #e7fff6;
}

.results-summary {
  background: var(--accent-bg);
  padding: 18px 22px;
  border-radius: 10px;
  margin: 0 auto 22px;
  max-width: 700px;
  box-shadow: 0 4px 12px rgba(2,6,23,0.06);
  font-size: 0.95rem;
}

.view-btn {
  text-align: center;
}

.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.25s ease;
}

.btn-primary:hover {
  background: #059669; /* darker green */
}




















/* FOOTER BASE */
.footer {
  position: relative;
  background: linear-gradient(180deg, #16fe05 0%, #0e2500 100%);
  color: #fff;
  padding: 6rem 2rem 2rem 2rem;
  font-family: 'Poppins', sans-serif;
}

.footer::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  background: url('../images/Group.JPG') repeat-x;
  background-size: cover;
  z-index: 0;
}

/* Newsletter */
.footer-newsletter {
  text-align: center;
  margin-bottom: 3rem;
  z-index: 1;
  position: relative;
}

.footer-newsletter h3 {
  color: #FFD700;
  margin-bottom: 0.5rem;
}

.footer-newsletter input[type="email"] {
  padding: 0.6rem 1rem;
  border-radius: 5px 0 0 5px;
  border: none;
  outline: none;
  width: 250px;
}

.footer-newsletter button {
  padding: 0.6rem 1rem;
  border-radius: 0 5px 5px 0;
  border: none;
  background: #FFD700;
  color: #004080;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.footer-newsletter button:hover {
  background: #FFC107;
}

/* Footer Container */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
  position: relative;
}

.footer-section h3 {
  color: #FFD700;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p {
  color: #f1f1f1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 0.6rem;
}

.footer-links ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #FFD700;
}

/* Social Media */
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  margin-right: 1.5rem;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s;
}

.footer-social a i {
  font-size: 1.5rem;
}

.footer-social a:hover {
  color: #FFD700;
}

/* Tooltip */
.footer-social a[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #FFD700;
  color: #004080;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.3s;
}

/* Legal Section */
.footer-legal {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.footer-legal a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-legal a:hover {
  color: #FFD700;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .footer-links ul li {
    display: inline-block;
    margin: 0 0.5rem 0.5rem 0.5rem;
  }

  .footer-social a {
    display: block;
    margin: 0.5rem 0;
  }

  .footer-newsletter input[type="email"] {
    width: 70%;
    margin-bottom: 0.5rem;
    border-radius: 5px;
  }

  .footer-newsletter button {
    width: 50%;
    border-radius: 5px;
  }
}




