@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap");

:root {
  --color-amaranth: #E53651;
  --color-cinnabar: #EF4B42;
  --color-tomato: #F45940;
  --color-watermelon: #E73A4F;
  --color-bubblegum: #ED6371;
}

body {
  font-family: "Inter", sans-serif;
}

.hero-gradient {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  background: linear-gradient(135deg, #E53651 0%, #EF4B42 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 1s ease-in-out, background-color 1s ease-in-out;
}

.hero-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.hero-gradient > .max-w-7xl {
  position: relative;
  z-index: 1;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hover-lift {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #E53651;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  background: #EF4B42;
}

.impact-testimony {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.68)),
    url("asset/pic%208.jpeg");
  background-position: center;
  background-size: cover;
}

.impact-testimony::after {
  content: none;
}

.impact-testimony-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 48px;
}

.gallery-shell {
  border-radius: 8px;
}

.gallery-stage {
  position: relative;
  background: #111827;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.gallery-main-button {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.gallery-main-button img,
.gallery-lightbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-control,
.gallery-lightbox-control,
.gallery-lightbox-close {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.68);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.gallery-control:hover,
.gallery-lightbox-control:hover,
.gallery-lightbox-close:hover {
  background: #E53651;
  transform: scale(1.04);
}

.gallery-control-prev,
.gallery-control-next {
  top: 50%;
  transform: translateY(-50%);
}

.gallery-control-prev:hover,
.gallery-control-next:hover {
  transform: translateY(-50%) scale(1.04);
}

.gallery-control-prev {
  left: 16px;
}

.gallery-control-next {
  right: 16px;
}

.gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  padding: 0 24px 24px;
}

.gallery-thumb {
  height: 76px;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 6px;
  opacity: 0.7;
  transition:
    border-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: #E53651;
  opacity: 1;
}

.gallery-thumb:hover {
  transform: translateY(-2px);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 32px;
  background: rgba(0, 0, 0, 0.88);
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lightbox figure {
  width: min(1100px, 100%);
  max-height: 88vh;
}

.gallery-lightbox img {
  display: block;
  max-height: 78vh;
  border-radius: 8px;
  object-fit: contain;
}

.gallery-lightbox figcaption {
  margin-top: 16px;
  color: #fff;
  text-align: center;
  font-weight: 600;
}

.gallery-lightbox-close {
  top: 22px;
  right: 22px;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  transform: translateY(-50%) scale(1.04);
}

.gallery-lightbox-prev {
  left: 24px;
}

.gallery-lightbox-next {
  right: 24px;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .impact-testimony,
  .impact-testimony-content {
    min-height: 420px;
  }

  .impact-testimony-content {
    padding: 32px 20px;
  }

  .gallery-stage {
    aspect-ratio: 4 / 3;
  }

  .gallery-meta {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .gallery-thumbnails {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 20px 20px;
  }

  .gallery-thumb {
    height: 68px;
  }

  .gallery-control {
    width: 38px;
    height: 38px;
  }

  .gallery-lightbox {
    padding-inline: 16px;
  }

  .gallery-lightbox-control {
    top: auto;
    bottom: 24px;
    transform: none;
  }

  .gallery-lightbox-control:hover {
    transform: scale(1.04);
  }
}
