/* home.css — Homepage only */

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

/* ── Slideshow ───────────────────────────────────────────────────────────────── */
.hero-slides {
  position: absolute;
  inset: 0;
  background-color: #2d5a3d;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 0;
  will-change: transform, opacity;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
  transform: translate(0,0) scale(1) !important;
}
.hero-slide.leaving {
  opacity: 0;
  z-index: 0;
  transition: opacity .8s ease;
}
.hero-slide.entering {
  opacity: 1;
  z-index: 2;
  transition: transform .9s cubic-bezier(.25,.46,.45,.94), opacity .6s ease;
}
/* Dark gradient overlay */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,.08) 0%,
    rgba(0,0,0,.25) 40%,
    rgba(0,0,0,.65) 100%
  );
}

/* ── Watermark — top left ────────────────────────────────────────────────────── */
.hero-watermark {
  position: relative;
  z-index: 3;
  font-size: clamp(5rem, 16vw, 17rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.6);
  letter-spacing: .04em;
  line-height: 1;
  margin-bottom: -.15em;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* ── Content — bottom ────────────────────────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  padding: 0 clamp(1.5rem, 5vw, 5rem) clamp(2rem, 5vh, 4rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-eyebrow {
  font-size: clamp(.7rem, 1.2vw, .82rem);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: .4rem;
}
.hero-title {
  font-size: clamp(3.2rem, 10vw, 10rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.02em;
  margin: 0 0 2.2rem;
  text-transform: uppercase;
}
.hero-bottom {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  align-self: center;
}
.hero-link {
  color: #fff;
  font-size: clamp(.88rem, 1.4vw, 1rem);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  padding-top: .15rem;
  flex-shrink: 0;
  transition: opacity .2s;
}
.hero-link:hover { color: #fff; opacity: .75; }
.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.75;
  opacity: .82;
  margin: 0;
  max-width: 660px;
  text-align: justify;
  text-align-last: left;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── Sections ───────────────────────────────────────────────────────────────── */
section { padding: 5rem 0; }

/* ── SDG badges ─────────────────────────────────────────────────────────────── */
.sdg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 8px;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}

/* ── News cards ─────────────────────────────────────────────────────────────── */
.news-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}
.news-card img { width: 100%; height: 220px; object-fit: cover; }
.news-card-body { padding: 1.25rem; }
.news-card-tag {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .hero-watermark { font-size: clamp(4rem, 18vw, 8rem); }
  .hero-title     { font-size: clamp(2.5rem, 12vw, 6rem); }
  .hero-bottom    { flex-direction: column; gap: 1rem; }
  .hero-content   { padding-bottom: 2.5rem; }
}
@media (max-width: 576px) {
  .hero-watermark { display: none; }
  .hero-content   { padding: 0 1.25rem 2rem; }
}
