﻿.home-hero {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: 34px;
  align-items: center;
  padding: 52px 5vw;
  background:
    linear-gradient(105deg, rgba(255, 250, 240, 0.97), rgba(255, 250, 240, 0.8)),
    url("../images/home/slider/slider1.jpeg") center/cover;
}

.home-hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-orange);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero h1 {
  margin: 0 0 18px;
  color: var(--brand-green);
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  font-weight: 850;
  line-height: 1;
}

.home-hero p {
  color: #4d5c52;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.secondary-btn {
  color: var(--brand-green);
  background: var(--brand-gold);
}

.secondary-btn:hover {
  color: #fff;
  background: var(--brand-green);
}

.image-open-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  cursor: zoom-in;
  background: transparent;
  border: 0;
}

.image-open-button img {
  display: block;
  width: 100%;
  max-height: 420px;
  margin: 0;
  object-fit: contain;
  background: #fffaf0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-open-button span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  color: #fff;
  background: rgba(3, 65, 38, 0.88);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 800;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  padding: 82px 22px 24px;
  background: rgba(0, 0, 0, 0.86);
}

.image-lightbox.is-open {
  display: block;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox-toolbar {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 1001;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  transform: translateX(-50%);
}

.lightbox-toolbar button {
  min-height: 38px;
  padding: 8px 13px;
  color: #fff;
  cursor: pointer;
  background: var(--brand-green);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-weight: 800;
}

.lightbox-toolbar button:hover,
.lightbox-toolbar button:focus-visible {
  background: var(--brand-orange);
}

.lightbox-stage {
  width: 100%;
  height: 100%;
  overflow: auto;
  text-align: center;
}

.lightbox-stage img {
  max-width: none;
  width: min(1600px, 96vw);
  transform-origin: top center;
  transition: transform 0.18s ease;
}

.children-home {
  padding-top: 35px;
}

.home-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 25px;
}

.home-details div {
  background: #f7f9fc;
  padding: 22px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.home-details h3 {
  margin-top: 0;
  color: #023e8a;
}

.sdg-section {
  width: 100%;
  max-width: none;
  padding: 58px 5vw;
  text-align: center;
  background: #fff;
  border-top: 1px solid rgba(7, 91, 53, 0.12);
  border-bottom: 1px solid rgba(7, 91, 53, 0.12);
}

.sdg-intro {
  text-align: center;
}

.sdg-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 34px auto 0;
}

.sdg-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  text-align: left;
  background: #fffaf0;
  border: 1px solid rgba(7, 91, 53, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.sdg-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  object-fit: cover;
  border-radius: 0;
}

.sdg-card h3 {
  margin: 18px 18px 8px;
  color: var(--brand-green);
  font-size: 1.12rem;
}

.sdg-card p {
  margin: 0 18px 20px;
  color: #5d6b61;
  font-size: 0.95rem;
}

footer {
  background: #023e8a;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}

.btn {
  display: inline-block;
  background: #0077b6;
  color: #fff;
  padding: 10px 20px;
  margin-top: 10px;
  text-decoration: none;
  border-radius: 5px;
}

.btn:hover {
  background: #0096c7;
}

.section-title {
  text-align: center;
  color: #0077b6;
  margin-bottom: 20px;
  font-size: 2.5rem;
  font-weight: 750;
}

.lead-text {
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 450;
  color: #040111;
  line-height: 1.8;
  text-align: left;
  margin: 30px auto;
  max-width: 900px;
}

.lead-text em {
  font-style: italic;
  color: #0077b6;
}

#about,
#work,
#impact,
#gallery,
#team,
#getinvolved,
#donate,
#contact,
#thankyou {
  text-align: center;
}

#about img,
#work img,
#impact img,
#gallery img,
#team img,
#donate img,
#thankyou img {
  width: min(100%, 860px);
  max-height: 430px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

@media (max-width: 920px) {
  .home-hero {
    grid-template-columns: 1fr;
    padding: 34px 20px;
  }

  .home-hero-media {
    order: -1;
  }
}

@media (max-width: 620px) {
  .home-hero h1 {
    font-size: 2.25rem;
  }

  .image-open-button img {
    max-height: 300px;
  }

  .sdg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .sdg-card h3 {
    margin: 14px 14px 6px;
    font-size: 1rem;
  }

  .sdg-card p {
    margin: 0 14px 16px;
    font-size: 0.88rem;
  }
}

