/* RESET */
* {
  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: 80px;
  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;
}

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

/* CARD */
.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 25px;
  margin-bottom: 30px;
}

/* TABLE */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table tr {
  border-bottom: 1px solid #eee;
}

.table td {
  padding: 10px 5px;
}

.table td:last-child {
  text-align: right;
  font-weight: 600;
}

.muted {
  color: #999;
  font-style: italic;
}

/* SECTION TITLE */
.section-header {
  margin-bottom: 15px;
  padding: 2rem;
}

.impact-number {
  display: block;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 28px;
  padding: 1rem;
  text-align: center;
}
.summary-card h2 {
  font-size: 28px;
  padding: 1rem;
  text-align: center;
}

/* IMPACT GRID */
.impact-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); */
  grid-template-columns: repeat(3, 1fr);

  gap: 20px;
}

/* IMPACT CARD */
.impact-card {
  /* width: 100%; */
  /* max-width: 350px; */
  /* border-radius: 18px; */
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 12px;
  /* display: flex; */
  /* flex-direction: column; */
  /* height: 100%; */
}

/* CARD HEADER */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* THEME TITLE */
.theme-title {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.theme-title img {
  width: 100%;
  height: 200px; /* 👈 FIXED HEIGHT */
  object-fit: cover; /* 👈 VERY IMPORTANT */
  border-radius: 12px;
}

.theme-text {
  font-size: 16px;
  color: #222;
  padding-bottom: 6px;
}

/* CARD CONTENT */
.card-content {
  margin-top: 10px;
  a {
    text-decoration: none;
  }
}

.card-content ul {
  padding-left: 22px;
  font-size: 14px;
}

.card-content li {
  margin-bottom: 6px;
}
.card ul {
  padding-left: 22px; /* bullets right side ki move avuthayi */
  margin-top: 10px;
}

.card ul li {
  margin-bottom: 6px; /* line spacing neat ga untundi */
}

/* MOBILE */
@media (max-width: 600px) {
  .table td {
    display: block;
    text-align: left;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }
}

nav ul li a {
  position: relative;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  padding-bottom: 6px;
}

/* underline effect */
nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 3px;
  background: #f2d96b;
  transition: width 0.3s ease;
}

/* hover */
nav ul li a:hover::after {
  width: 100%;
}

nav ul li a.active::after {
  width: 100%;
}

/* hide extra stories */

.theme3-list .extra {
  display: none;
}

.theme3-list.show-all .extra {
  display: list-item;
}

/* read more button */

.read-more {
  display: block;
  margin-top: 10px;
  color: #2e7d32;
  font-weight: 600;
  cursor: pointer;
}

.read-more:hover {
  text-decoration: underline;
}

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

/* ===== HERO ===== */
.hero {
  /* background: linear-gradient(135deg, #007bff, #0056b3); */
  background-color: rgb(43, 167, 43);
  color: white;
  padding: 30px;
  /* padding: 24px 18px; */
  border-radius: 16px;
  margin-bottom: 25px;
}

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

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

.subtitle {
  margin-top: 8px;
  font-size: 15px;
  opacity: 0.9;
}

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

/* ===== SECTION HEADINGS ===== */
.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #007bff;
}

/* ===== TEXT ===== */
p {
  margin-bottom: 15px;
  text-align: justify;
}

/* ===== HIGHLIGHT ===== */
.highlight {
  background: #f0f6ff;
  border-left: 4px solid #007bff;
  padding: 15px;
  margin: 10px;
  border-radius: 8px;
}

/* ===== SIDE BY SIDE LAYOUT ===== */
.side-by-side {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* TEXT */
.side-by-side .text {
  flex: 1.2;
  text-align: justify;
}

/* IMAGE GRID (NEW) */
.image-grid {
  flex: 1;
  display: grid;
  /* grid-template-columns: 1fr 1fr; */
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* WHEN ONLY 1 IMAGE */
.image-grid.single {
  grid-template-columns: 1fr;
  justify-items: stretch;
  /* align-items: stretch; */
}

/* IMAGE CARD */
.img-card {
  text-align: center;
}

.img-card img {
  width: 100%;
  /* max-width: 260px; */
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}

/* CAPTION */
.caption {
  font-size: 12px;
  margin-top: 5px;
}

/* BUTTON */
.img-card .view-btn {
  margin-top: 6px;
}

.gallery-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== IMAGE CAPTION ===== */
.caption {
  font-size: 13px;
  color: #666;
  margin-top: 5px;
  text-align: center;

  min-height: 60px;

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

/* ===== IMAGE GALLERY ===== */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.image-gallery img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.image-gallery img:hover {
  transform: scale(1.05);
}

/* ===== QUOTE ===== */
.quote {
  background: #fff;
  border-left: 4px solid #28a745;
  padding: 15px 20px;
  font-style: italic;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* ===== MOBILE STACK ===== */
@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }
  .side-by-side {
    flex-direction: column;
  }
  .side-by-side .image img {
    width: 70%;
  }
}

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

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

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

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

/* //footer css// — 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;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  text-align: center;
  padding-top: 80px;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  border: 1px solid;
  border-radius: 6px;
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

#caption {
  color: white;
  margin-top: 15px;
  font-size: 18px;
}

.summary-card {
  /* background: #ffffff; */
  padding: 2rem;
  border-radius: 16px;
  /* background-color: red; */
}

/* ===== IMPACT WRAPPER ===== */

.impact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  /* padding: 1rem; */
}

/* ===== CARD ===== */
.impact-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
  width: calc(25% - 20px);

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

  transition: all 0.3s ease;

  /* strong visible shadow */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* hover effect */
/* .impact-box:hover {
  transform: translateY(-5px);
  background: #eaf5ee;
} */

/* ===== ICON ===== */
.impact-box img {
  width: 60px;
  height: 64px;
  margin-bottom: 10px;
}

/* ===== TEXT ==== */
.impact-box span {
  font-size: 14px;
  font-weight: 600;
  color: #2e7d32;
}

/* ===== SECOND ROW (3 CARDS CENTERED) ===== */

/* ✅ Center last 3 items */
.impact-box:nth-child(5) {
  grid-column: 2;
}

.impact-box:nth-child(6) {
  grid-column: 3;
}

.impact-box:nth-child(7) {
  grid-column: 4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .impact-box {
    width: calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }
  .impact-box {
    width: 100%;
  }
}

/* ===== THEME CARD ===== */
.theme-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  /* cursor: pointer; */

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.theme-card:hover {
  transform: translateY(-6px);
}

/* IMAGE */
.theme-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* BODY */
.theme-card-body {
  padding: 16px;
}

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

/* HEADING */
.theme-card-body h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #333;
}

/* Button */
.view-btn {
  width: 100px;
  margin-top: 12px;
  background: #2e7d32;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  margin-top: auto;
  /* display: flex;
  justify-content: center; */
}
