/* ===========================
   MazimaNew Unified Stylesheet
   =========================== */

/* --- Base Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height:normal;
  background-color: #f9f9f9;
  color: #333;
}

/* --- Layout Grid --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  flex: 1;
  padding: 15px;
}

/* --- Navbar --- */
header {
  background: #004d40; /* deep green for trust */
  color: #fff;
  padding: 10px 0;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header nav ul {
  list-style: none;
  display: flex;
}

header nav ul li {
  margin: 0 15px;
}

header nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

header nav ul li a:hover {
  text-decoration: underline;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
              url('/images/hero.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-primary {
  background: #00796b;
  color: #fff;
}

.btn-primary:hover {
  background: #004d40;
  color: white;
}

.btn-secondary {
  background: #e0e0e0;
  color: #333;
}

.btn-secondary:hover {
  background: #bdbdbd;
}

/* --- Program Cards --- */
.card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin: 20px 0;
  padding: 20px;
  text-align: center;
}

.card img {
  max-width: 100%;
  border-radius: 6px 6px 0 0;
}

.card h3 {
  margin: 15px 0;
  font-size: 1.4rem;
}

.card p {
  font-size: 1rem;
  color: #555;
}

/* --- Footer --- */
footer {
  background: #004d40;
  color: #fff;
  text-align: center;
  padding: 20px;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
/* --- Navbar --- */
.navbar {
  background: #004d40;
  color: #fff;
  padding: 15px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* allows wrapping on smaller screens */
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.nav-right {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px; /* ensures spacing when stacked */
}

/* --- Footer --- */
.footer {
  background: #004d40;
  color: #fff;
  padding: 30px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap; /* allows stacking */
  text-align: center;
}

.footer-left, .footer-center, .footer-right {
  flex: 1 1 300px; /* flexible width, minimum 300px */
  margin: 10px;
}

.sdg-icons img {
  height: 40px;
  margin: 5px;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 992px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .nav-right {
    justify-content: center;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .logo {
    font-size: 1.2rem;
  }

  .nav-links li a {
    font-size: 0.9rem;
  }

  .footer-left, .footer-center, .footer-right {
    flex: 1 1 100%;
    margin: 5px 0;
  }

  .sdg-icons img {
    height: 30px;
  }
}
/* Language Switch & Auth Links */
.lang-switch a,
.auth-links a,
.auth-icon a
 {
  color: #f1f1f1;       /* light gray for readability */
  text-decoration: none;
  font-weight: 500;
  margin: 0 5px;
  transition: color 0.3s ease;
}

.lang-switch a:hover,
.auth-links a:hover {
  color: #ffcc00;       /* warm accent (gold/yellow) on hover */
}
/* Hamburger icon */
.menu-toggle, .menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile menu drawer */
/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%; /* hidden off-screen */
  width: 280px;
  height: 100%;
  background: #004d40;
  color: #fff;
  transition: right 0.3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 12px rgba(0,0,0,0.4);

  overflow-y: auto;   /* enable vertical scroll */
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

/* Active state */
.mobile-menu.active {
  right: 0;
}

/* Ensure menu items stack vertically */
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu ul li {
  width: 100%; /* full width row */
}

.mobile-menu ul li a {
  display: block; /* block-level link */
  width: 100%;
  padding: 8px 12px;
  background: rgba(255,255,255,0.05); /* subtle contrast row */
  border-radius: 4px;
  color: #f1f1f1;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
}

.mobile-menu ul li a:hover {
  background: rgba(255,255,255,0.15); /* stronger contrast on hover */
  color: #ffcc00;
}

/* Responsive behavior */
@media (max-width: 992px) {
  .nav-links,
  .nav-right {
    display: none; /* hide desktop nav */
  }

  .menu-toggle {
    display: block; /* show hamburger */
  }
}
/* Default: hide hamburger on desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Show hamburger only on mobile/tablet */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  .nav-links,
  .nav-right {
    display: none; /* hide desktop nav */
  }
}
.menu-toggle {
  transition: transform 0.2s ease;
}

.menu-toggle:active {
  transform: scale(0.9);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%; /* hidden off-screen */
  width: 250px;
  height: 100%;
  background: #004d40;
  color: #fff;
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 999;
}

.mobile-menu.active {
  right: 0; /* slide in */
}
/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%; /* hidden off-screen */
  width: 280px;
  height: 100%;
  background: #004d40; /* deep green */
  color: #fff;
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  right: 0; /* slide in */
}

/* Close button */
.menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Menu links */
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.mobile-menu ul li {
  margin: 15px 0;
}

.mobile-menu ul li a {
  color: #f1f1f1;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu ul li a:hover {
  color: #ffcc00;
}

/* Language switch inside drawer */
.mobile-menu .lang-switch {
  margin-top: auto; /* push to bottom */
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}

.mobile-menu .lang-switch a {
  color: #f1f1f1;
  margin: 0 8px;
  text-decoration: none;
}

.mobile-menu .lang-switch a:hover {
  color: #ffcc00;
}

/* Auth links inside drawer */
.mobile-menu .auth-links {
  margin-top: 10px;
  text-align: center;
}

.mobile-menu .auth-links a {
  color: #f1f1f1;
  text-decoration: none;
  margin: 0 10px;
}

.mobile-menu .auth-links a:hover {
  color: #ffcc00;
}
/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%; /* hidden off-screen */
  width: 280px;
  height: 100%;
  background: #004d40; /* deep green */
  color: #fff;
  transition: right 0.3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 12px rgba(0,0,0,0.4); /* depth shadow */
}

/* Active state */
.mobile-menu.active {
  right: 0;
}

/* Close button */
.menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Menu items as vertical rows */
.mobile-menu ul {
  list-style: none;
  padding: 0;
  
}

.mobile-menu ul li {
  margin: 0;
}

.mobile-menu ul li a {
  display: block;
  padding: 8px 12px;
  background: rgba(255,255,255,0.05); /* subtle contrast row */
  border-radius: 4px;
  color: #f1f1f1;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.1);
}

.mobile-menu ul li a:hover {
  background: rgba(255,255,255,0.15); /* stronger contrast on hover */
  color: #ffcc00;
}

/* Language switch anchored at bottom */
.mobile-menu .lang-switch {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}

.mobile-menu .lang-switch a {
  display: inline-block;
  padding: 8px 12px;
  margin: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  color: #f1f1f1;
  text-decoration: none;
}

.mobile-menu .lang-switch a:hover {
  background: rgba(255,255,255,0.15);
  color: #ffcc00;
}

/* Auth links */
.mobile-menu .auth-links {
  margin-top: 10px;
  text-align: center;
}

.mobile-menu .auth-links a {
  display: block;
  padding: 8px;
  margin: 6px 0;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  color: #f1f1f1;
  text-decoration: none;
}

.mobile-menu .auth-links a:hover {
  background: rgba(255,255,255,0.15);
  color: #ffcc00;
}
/* Overlay background */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* semi-transparent black */
  z-index: 998; /* just below the drawer */
  display: none; /* hidden by default */
}

/* Show overlay when menu is active */
.mobile-menu.active ~ .menu-overlay {
  display: block;
}
/* Prevent background scroll when menu is open */
body.lock-scroll {
  overflow: hidden;
  height: 100%;
}
/* hero section*/
