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

/* ===== BODY ===== */
body {
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #f9f9f9;
  /* padding: 1.2rem; */
  padding-top: 90px;
  /* border-bottom:3px solid #f4b400; */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.menu-toggle, .menu-close {
  display: none;
}

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

/* ACTIVE LINK */

.navbar_inner_pages a.active {
  color: #1e3a8a;
}

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

.navbar_inner_pages a::after {
  content: "";
  position: absolute;

  width: 0;
  height: 2px;

  background: #2e7d32;

  left: 0;
  bottom: -6px;

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

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 30px 20px;
}

/* ===== HERO SECTION ===== */
.hero_theme {
  position: sticky;
  top: 90px;
  z-index: 999;
  background: rgb(43, 167, 43);
  color: white;
  padding: 20px 30px;
  border-radius: 16px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-badge {
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 10px;
}

.hero_theme h1 {
  margin: 0;
  font-size: 26px;
}

/* ===== CARD ===== */
.card {
  background: #fff;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 25px;
}
.card p {
  text-align: justify;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 20px;
  margin-bottom: 12px;
  color: #007bff;
  font-weight: 600;
}

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

/* ===== SDG GRID ===== */

.sdg-grid {
  display: flex;
  flex-wrap: wrap;

  gap: 24px;

  justify-content: flex-start;
  align-items: center;

  margin-top: 20px;
}

article {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
  img {
    width: 100px;
    height: 100px;
    object-fit: contain;
  }
}

/* ===== LSDG SECTION ===== */

.lsdg-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 24px;
  margin-top: 20px;
}

.lsdg-item {
  width: 130px;
  /* height: 130px; */

  background: #fff;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 14px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

  transition: transform 0.3s ease;
}

.lsdg-item:hover {
  transform: translateY(-4px);
}

.lsdg-item img {
  width: 100%;
  /* height: 100%; */
  height: auto;
  display: block;
  object-fit: contain;
}

/* ===== TAGS ===== */
.tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: #eaf2ff;
  color: #007bff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

/* ===== ACTIVITY DESIGN for cards not table ===== */

/* ===== TITLE ===== */
.activity-title {
  /* background: #e3c48f; */
  background: #e6f4ea;
  color: #1b4332;
  text-align: left;
  padding: 12px;
  font-size: 20px;
  font-weight: 600;
  /* color: #2f4f2f; */
  border-radius: 8px;
  margin-bottom: 20px;
}

/* ===== ROW ===== */
.activity-row {
  display: flex;
  /* align-items: center; */
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

/* ===== LEFT TEXT ===== */
.activity-text {
  flex: 1;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  /* color: #000; */
}

/* ===== CARD GROUP ===== */
.cards-group {
  /* display: flex;
  gap: 20px;
  align-items: stretch; */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
} /* ===== MINI CARD ===== */
.mini-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  width: 100%;
  max-width: 240px;
}

/* IMAGE */
.mini-card img {
  width: 100%;
  height: 150px; /* 🔥 FIX height */
  object-fit: contain; /* clean look */
  display: block;
}

/* TEXT */
.mini-card p {
  padding: 12px;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  flex: 1; /* 🔥 pushes text properly */
  display: flex;
  /* align-items: center;  */
  justify-content: center;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .activity-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cards-group {
    flex-wrap: wrap;
  }
}

/* ===== FOOTER ===== */

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

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav ul {
    flex-wrap: wrap;
  }

  .sdg-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== FULL MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }

  .hero_theme {
    position: relative;
    top: 0;
    border-radius: 10px;
    padding: 16px;
  }

  .hero_theme h1 {
    font-size: 20px;
  }

  .activity-row {
    flex-direction: column;
    gap: 16px;
  }

  .activity-text {
    font-size: 16px;
  }

  .cards-group {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .mini-card {
    max-width: 100%;
    width: 100%;
  }

  .sdg-grid {
    gap: 12px;
  }

  article img {
    width: 72px;
    height: 72px;
  }

  .lsdg-item {
    width: 100px;
  }

  .table th,
  .table td {
    display: block;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cards-group {
    grid-template-columns: 1fr;
  }
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 35px;
  cursor: pointer;
}
