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

/* BODY */
body {
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  background: #f5f7fb;
  color: #333;
  line-height: 1.6;
  padding-top: 100px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Push footer to bottom when content is short */
#footer {
  margin-top: auto;
}

@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }
}

main {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  padding: 30px 20px;
}

/* HERO BANNER */
.hero-banner {
  /* background: linear-gradient(135deg, #1976d2, #1565c0); */
  background-color: rgb(43, 167, 43);
  color: white;
  padding: 25px 30px;
  border-radius: 16px;
  margin-bottom: 25px;
}

/* TITLE */
.hero-banner h3 {
  margin-bottom: 10px;
}

/* SUBTEXT */
.hero-banner p {
  font-size: 18px;
  opacity: 0.9;
}

/* GRID */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* CARD */
.theme-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #fff;
  padding: 10px;
}

/* IMAGE */
.theme-card img {
  width: 100%;
  height: 220px; /* fixed height */
  object-fit: cover;
  border-radius: 10px;
}

/* BODY */
.theme-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 14px;
}

/* TITLE */
.theme-card-body h4 {
  flex-grow: 1; /* pushes button down */
}

/* BUTTON */
.view-btn {
  align-self: flex-start;
  margin-top: 10px;
  background: #2e7d32;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
}

/* SMALL TEXT */
.tag {
  font-size: 12px;
  color: #888;
  display: block;
  margin-bottom: 6px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  background: #eef2f3;
  padding: 16px 40px;

  z-index: 1000;

  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);

  transition: all 0.3s ease;
  /* padding-top:110px; */
}

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

.header-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;

  max-width: 1400px;
  margin: auto;
}

/* ===== PROJECT TITLE (LOGO STYLE) ===== */

.project-title {
  border-left: 4px solid #2e7d32;
  padding-left: 12px;

  font-weight: 700;
  color: #1b5e20;

  line-height: 1.3;
}

.title-line {
  display: block;
  font-size: 16px;
}

/* ===== NAVBAR ===== */

.navbar_inner_pages {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
}

/* ===== NAV LINKS ===== */

.navbar_inner_pages a {
  text-decoration: none;
  font-weight: 600;
  color: #1b5e20;
  font-size: 14px;

  position: relative;
  transition: 0.3s;
}

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

.navbar_inner_pages a:hover {
  color: #2e7d32;
}

/* ===== UNDERLINE EFFECT ===== */

.navbar_inner_pages a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;

  width: 0;
  height: 2px;

  background: #2e7d32;
  transition: 0.3s;
}

.navbar_inner_pages a:hover::after {
  width: 100%;
}

/* ===== SCROLL EFFECT ===== */

.header.scrolled {
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* ACTIVE NAV LINK */

.navbar_inner_pages a.active {
  color: #1976d2; /* blue color */
}

/* .navbar_inner_pages a.active::after{
  width:100%;
  background:#1976d2;
} */

/* FOOTER — defer to commonfooter.css; only keep override-safe rules here */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 30px;
  font-size: 0.95rem;
  background-color: #239251;
  padding: 30px 20px;
  margin-top: 30px;
  text-align: center;
}

.footer-links a {
  color: white;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* FOOTER MOBILE - stack vertically on phones */
@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    gap: 14px;
    padding: 24px 16px;
    font-size: 0.9rem;
  }
}

/* ===== LIGHTBOX ===== */

.lightbox {
  display: none;
}
