/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  color: #333;
  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;
}

/* NAVBAR */

.navbar {
  position: absolute;
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.logo {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
}

.nav-links {
  /* display:flex; */
  /* gap:25px; */
  display: flex;
  /* text-align: end; */
  justify-content: right;

  gap: 28px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 100px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -4px;
  background: #2e7d32;
  /* background:#e6c85c; */
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* HERO */

.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  color: white;
  max-width: 600px;
}
.hero-title {
  max-width: 650px;
  line-height: 1.2;
  padding-bottom: 10px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.read-btn {
  background: #2e7d32;
  padding: 12px 15px;
  border-radius: 30px;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.read-btn:hover {
  background: #1b5e20;
}

/* IMPACT CARDS */

.icards {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: stretch;
}

.icard {
  width: 300px;
  padding: 25px;
  border-radius: 10px;
  background: #f5f5f5;

  display: flex;
  flex-direction: column;
}

.icard h3 {
  margin-bottom: 10px;
  color: #2e7d32;
  /* min-height: 60px; */

  flex-grow: 1;
}

.icard p {
  flex-grow: 1;
}

/* WORK CARDS */

.cards {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  width: 300px;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px;
}

.card h3 {
  margin-bottom: 10px;
  color: #2e7d32;
}

.card-content p {
  flex-grow: 1;
  font-size: 14px;
}

.card-btn {
  display: inline-block;
  margin-top: 15px;
  color: #2e7d32;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  margin: auto;
}

.card-btn:hover {
  color: #1b5e20;
  transform: translateX(5px);
}

/* CONSORTIUM */

/* .Consortium-logos {
  background-color:#f4faff;
  border-top:1px solid #ccc;
  padding: 2rem;
} */

.Consortium-logos h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 25px;
  color: #003366;
  text-transform: uppercase;
}

.section-subtext {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 20px;
  color: #555;
}
/* 
/* CONSORTIUM GRID - enforces 3-3-2 layout */
.consortium-grid {
  /* display: grid;
  grid-template-columns: repeat(3, 1fr); */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* CONSORTIUM LOGO CARDS  */
.logo-block {
  width: 100%;
  min-height: 246px;
  text-align: center;
  background: #ffffff;
  padding: 25px 20px;
  border-radius: 12px;
  flex: 0 0 calc(33.33% - 30px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.08);

  /* transition: all 0.3s ease; */

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* 
.consortium-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.logo-block {
  flex: 0 0 calc(33.33% - 20px);
} */
/* HOVER EFFECT */

.logo-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

/* LOGO IMAGE */

.logo-block img {
  width: 120px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* TITLE */

.logo-block h3 {
  font-size: 1.1rem;
  margin: 6px 0;
  font-weight: 600;
  color: #222;
}

/* ROLE TEXT */

.logo-block p {
  font-size: 0.9rem;
  color: #666;
}

/* SOCIAL ICONS */

.social-icons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-icons a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f1f1;
  border-radius: 50%;
  color: #333;
  font-size: 14px;
  transition: 0.3s;
  text-decoration: none;
}

.social-icons a:hover {
  background: #0077b5;
  color: #fff;
  transform: translateY(-3px);
}

/* SCROLL TOP */

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #4f7f3f;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: #3d652f;
}

html {
  scroll-behavior: smooth;
}

/* RESPONSIVE */

/* SECTIONS */

.section {
  padding: 80px 60px;
  text-align: center;
  background: #ffffff; /* default white */
}

/* ALTERNATE BACKGROUND */

.section:nth-child(even) {
  background: #f5f5f5; /* grey section */
}

.section:nth-child(odd) {
  background: #ffffff; /* white section */
}

.section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #1b5e20;
}

.project-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
  /* color:#1b5e20; */
  max-width: 55%;
  line-height: 1.4;
  white-space: nowrap;
  flex: 1;
  text-overflow: ellipsis;
}

.header {
  /* display:flex; */
  /* flex-direction: column; */
  /* justify-content:space-between; */
  align-items: center;
  gap: 30px;

  /* max-width: 1400px; */
  margin: auto;
  /* flex-wrap: nowrap !important; */
  /* max-width: 1600px; */
}

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

.navbar_inner_pages {
  display: flex;
  /* text-align: end; */
  justify-content: right;

  gap: 28px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 100px;
}

/* MENU LINKS */

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

  position: relative;

  transition: 0.3s;
}

/* //footer css// */

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

article {
  display: flex;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 30px;
  }
  .hero-content {
    left: 20px;
    right: 20px;
    text-align: center;
    max-width: 100%;
  }
  .navbar {
    padding: 12px 16px;
    justify-content: flex-start;
    gap: 12px;
  }
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    order: -1;
    cursor: pointer;
    z-index: 1200;
    flex-shrink: 0;
  }
  .nav-links, .navbar_inner_pages {
    position: fixed;
    top: 0;
    left: -270px;
    right: auto;
    width: 260px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 70px;
    padding-left: 24px;
    transition: left 0.3s ease;
    box-shadow: 2px 0 12px rgba(0,0,0,0.15);
    z-index: 1100;
    margin: 0 !important;
  }
  .nav-links.active, .navbar_inner_pages.active {
    left: 0;
  }
  .nav-links a, .navbar_inner_pages a {
    color: #1b5e20 !important;
    margin-bottom: 20px;
    font-size: 15px;
  }
  .menu-close {
    display: block !important;
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 32px;
    cursor: pointer;
    color: #1b5e20;
    font-weight: bold;
  }
  .icards, .cards {
    flex-direction: column;
    align-items: center;
  }
  .icard, .card {
    width: 100%;
    max-width: 340px;
  }
  .section {
    padding: 40px 20px;
  }
  .consortium-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .logo-block {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
  }
  .header {
    flex-direction: column;
    gap: 15px;
  }
}
