:root {
  --bg: #f3f8ff;
  --bg-soft: #e8f1ff;
  --blue-50: #eaf3ff;
  --blue-100: #d2e6ff;
  --blue-200: #b4d3ff;
  --blue-400: #56a3ff;
  --blue-500: #2f84f7;
  --blue-600: #1a63cd;
  --blue-700: #114899;
  --ink: #12223d;
  --ink-soft: #466084;
  --white: #ffffff;
  --border: #c5d9f7;
  --shadow-lg: 0 24px 60px rgba(17, 72, 153, 0.2);
  --shadow-md: 0 12px 28px rgba(17, 72, 153, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 8% 0%, #deecff 0%, #f4f8ff 40%, #f7faff 100%);
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.topline {
  background: linear-gradient(90deg, #092856 0%, #0f3a78 100%);
  color: #d9e8ff;
  font-size: 0.85rem;
}

.topline-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.58rem 0;
}

.topline-inner p {
  margin: 0;
}

.topline-inner a {
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 232, 255, 0.5);
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #0b2f63 0%, #1e5cae 48%, #7cb4ff 100%);
  color: #f8fbff;
  padding-bottom: 4.8rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle at 30% 30%, #7fc4ff 0%, #4a8dff 100%);
  top: -180px;
  right: -120px;
  opacity: 0.45;
}

.hero::after {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle at 25% 25%, #a4d3ff 0%, #67a8ff 100%);
  left: -120px;
  bottom: -180px;
  opacity: 0.32;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  background: linear-gradient(90deg, rgba(8, 35, 77, 0.72) 0%, rgba(15, 61, 126, 0.58) 100%);
  border: 1px solid rgba(219, 234, 255, 0.25);
  border-radius: 16px;
  margin-top: 0.7rem;
  padding-inline: 1rem;
  backdrop-filter: blur(7px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  font-family: "Outfit", "Sora", sans-serif;
  font-size: 1.17rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  width: 62px;
  height: 62px;
  padding: 0.25rem;
  border-radius: 12px;
  border: 1px solid rgba(216, 232, 255, 0.5);
  background: #ffffff;
  object-fit: contain;
}

.brand span {
  display: grid;
  gap: 0.08rem;
  line-height: 1.1;
}

.brand span strong {
  font-size: 1rem;
}

.brand span small {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  opacity: 0.9;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: #e8f2ff;
  opacity: 0.9;
  transition: opacity 180ms ease;
}

.nav-links a:hover {
  opacity: 1;
}

.hero-grid {
  position: relative;
  z-index: 1;
  padding: 3.2rem 0 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: start;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.17;
}

h1,
h2 {
  font-family: "Outfit", "Sora", sans-serif;
}

.hero-copy h1 {
  margin-top: 0.95rem;
  font-size: clamp(2.1rem, 3vw, 3.7rem);
  max-width: 14ch;
}

.lead {
  margin: 1.1rem 0 0;
  color: #d3e6ff;
  max-width: 58ch;
}

.hero-gov-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-gov-tags span {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(226, 239, 255, 0.45);
  border-radius: 999px;
  padding: 0.32rem 0.64rem;
  background: rgba(255, 255, 255, 0.16);
}

.hero-actions {
  margin-top: 1.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.73rem 1.28rem;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 200ms ease, background-color 220ms ease, color 220ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #dff0ff;
  color: #0d3f80;
}

.btn-primary:hover {
  background: #ffffff;
}

.btn-outline {
  background: #ffffff14;
  color: #f2f8ff;
  border: 1px solid #ffffff47;
}

.btn-outline:hover {
  background: #ffffff24;
}

.hero-pills {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-pills span {
  background: #ffffff1f;
  border: 1px solid #ffffff4a;
  border-radius: 999px;
  padding: 0.33rem 0.66rem;
  font-size: 0.8rem;
}

.hero-panel {
  border: 1px solid #ffffff3b;
  background: linear-gradient(180deg, #ffffff1a 0%, #ffffff09 100%);
  border-radius: 20px;
  padding: 1.3rem;
  box-shadow: var(--shadow-lg);
  animation: panelFloat 5.5s ease-in-out infinite;
}

.hero-panel h2 {
  font-size: 1.25rem;
}

.hero-panel ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.hero-panel li {
  background: #ffffff14;
  border-radius: 12px;
  padding: 0.75rem;
}

.hero-panel strong {
  display: block;
}

.hero-panel p {
  margin: 0.25rem 0 0;
  color: #d8e8ff;
  font-size: 0.9rem;
}

.panel-foot {
  margin-top: 1rem;
  border-top: 1px solid rgba(228, 240, 255, 0.28);
  padding-top: 0.7rem;
}

.panel-foot p {
  margin: 0.35rem 0 0;
  color: #e4efff;
  font-size: 0.84rem;
}

.section {
  padding: 5rem 0;
}

.section-soft {
  background: linear-gradient(180deg, #eaf2ff 0%, #f4f8ff 100%);
}

.section-head {
  margin-bottom: 1.7rem;
}

.section-head .eyebrow {
  color: var(--blue-600);
}

.section-head h2 {
  margin-top: 0.72rem;
  font-size: clamp(1.7rem, 2.45vw, 2.65rem);
  color: #0d2653;
}

.section-text {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.institutional-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 1rem;
}

.institutional-logo-card,
.institutional-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: var(--shadow-md);
}

.logo-card-kicker {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.institutional-logo-card img {
  margin-top: 0.8rem;
  width: 100%;
  max-width: 210px;
  border-radius: 14px;
  border: 1px solid #c6daf9;
  background: #f9fcff;
  padding: 0.8rem;
}

.institutional-logo-card p {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
}

.institutional-info-card h3 {
  color: #103065;
  font-size: 1.1rem;
}

.info-list {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.4rem;
}

.info-list p {
  margin: 0;
  color: var(--ink-soft);
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: var(--shadow-md);
}

.feature-card h3 {
  font-size: 1.15rem;
  color: #123267;
}

.feature-card p {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.journey-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.journey-card span {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #cee4ff 0%, #a5ceff 100%);
  color: #0f4a9e;
  font-weight: 700;
  font-size: 0.9rem;
}

.journey-card h3 {
  margin-top: 0.78rem;
  font-size: 1.1rem;
  color: #103065;
}

.journey-card p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
}

.location-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
}

.location-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: var(--shadow-md);
}

.location-card h3 {
  color: #123267;
  font-size: 1.1rem;
}

.location-card p {
  margin: 0.52rem 0 0;
  color: var(--ink-soft);
}

.social-actions {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.44rem 0.88rem;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 180ms ease, filter 180ms ease;
}

.social-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.social-link-instagram {
  background: linear-gradient(90deg, #f58529 0%, #dd2a7b 48%, #8134af 100%);
  color: #fff;
}

.social-link-whatsapp {
  background: #0d9f50;
  color: #fff;
}

.location-card .btn {
  margin-top: 1rem;
}

.map-frame {
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 340px;
  background: #dbeaff;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.gallery-preview-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.gallery-preview-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: zoom-in;
}

.gallery-block-title {
  margin: 0 0 0.7rem;
  font-weight: 700;
  color: #15366b;
}

.gallery-slider {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: #0b2f63;
  box-shadow: var(--shadow-md);
  max-width: 980px;
  margin-inline: auto;
}

.slider-viewport {
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 420ms ease;
}

.gallery-slide {
  flex: 0 0 100%;
  margin: 0;
  height: 420px;
  background: #0b2f63;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b2f63;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(8, 31, 67, 0.65);
  color: #f7fbff;
  font-size: 1.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.slider-btn-prev {
  left: 0.8rem;
}

.slider-btn-next {
  right: 0.8rem;
}

.slider-dots {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.slider-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  border: 1px solid #86b3eb;
  background: #c7defb;
  cursor: pointer;
  padding: 0;
}

.slider-dot.is-active {
  background: #1f73dd;
  border-color: #1f73dd;
}

.gallery-caption {
  margin-top: 0.8rem;
}

.gallery-caption p {
  margin: 0;
  color: var(--ink-soft);
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 40, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 60;
  cursor: zoom-out;
}

.image-modal[hidden] {
  display: none;
}

.image-modal-dialog {
  position: relative;
  width: min(1200px, 96vw);
  max-width: min(1200px, 96vw);
  max-height: 92vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(4, 15, 35, 0.5);
  background: #0b1f43;
}

.image-modal-dialog img {
  display: block;
  width: 100%;
  height: auto;
  max-width: min(1200px, 96vw);
  max-height: 92vh;
  object-fit: contain;
  background: #0b1f43;
  cursor: zoom-out;
}

.image-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 20, 40, 0.78);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.governance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.governance-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

.governance-card h3 {
  color: #143b72;
  font-size: 1.03rem;
}

.governance-card p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.governance-card a {
  display: inline-flex;
  margin-top: 0.8rem;
  color: #0d4f9d;
  text-decoration: none;
  font-weight: 600;
}

.governance-card a::after {
  content: "->";
  margin-left: 0.35rem;
}

.transparency-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.api-status {
  margin: 0;
  color: var(--ink-soft);
}

.api-status.error {
  color: #bf2536;
}

.api-status.success {
  color: #0b5797;
}

.org-card {
  background: linear-gradient(180deg, #fafdff 0%, #f0f7ff 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.05rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
}

.org-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4f6b93;
}

.org-name {
  margin: 0.5rem 0 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.org-meta {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
}

.org-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.org-flag {
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 999px;
  padding: 0.25rem 0.62rem;
  font-size: 0.8rem;
  color: #294770;
}

.transparency-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.impact-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.05rem;
  box-shadow: var(--shadow-md);
}

.impact-number {
  margin: 0;
  color: #0f4f9e;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.1vw, 2.2rem);
}

.impact-label {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
}

.table-grid {
  display: grid;
  gap: 1rem;
}

.table-block h3 {
  margin: 0 0 0.6rem;
  color: #15366b;
  font-size: 1.12rem;
}

.table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.84rem;
  border-bottom: 1px solid #e6effb;
  font-size: 0.91rem;
}

th {
  background: #edf5ff;
  color: #1e4278;
  font-weight: 700;
}

tbody tr:last-child td {
  border-bottom: none;
}

td:last-child,
th:last-child {
  white-space: nowrap;
}

.footer {
  margin-top: 2.4rem;
  background: linear-gradient(180deg, #081f43 0%, #061734 100%);
  color: #dae9ff;
  padding: 2.4rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.footer-title {
  margin: 0;
  font-family: "Outfit", "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.footer p {
  margin: 0.42rem 0 0;
  color: #bdd6fb;
  font-size: 0.93rem;
}

.footer-social {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-social a {
  text-decoration: none;
  font-size: 0.83rem;
  color: #e2efff;
  border: 1px solid rgba(202, 224, 255, 0.35);
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
}

.footer-dev {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 223, 255, 0.22);
}

.footer-dev p {
  margin: 0;
  font-size: 0.85rem;
  color: #a9c9f6;
}

.footer-dev a {
  margin-left: 0.35rem;
  color: #dbebff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(219, 235, 255, 0.65);
}

.feature-card,
.journey-card,
.location-card,
.institutional-logo-card,
.institutional-info-card,
.governance-card,
.impact-card,
.org-card {
  position: relative;
  overflow: hidden;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.feature-card::after,
.journey-card::after,
.location-card::after,
.institutional-logo-card::after,
.institutional-info-card::after,
.governance-card::after,
.impact-card::after,
.org-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -70%;
  width: 42%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.58) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}

.feature-card:hover,
.journey-card:hover,
.location-card:hover,
.institutional-logo-card:hover,
.institutional-info-card:hover,
.governance-card:hover,
.impact-card:hover,
.org-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(15, 71, 145, 0.2);
  border-color: #98c2f9;
}

.feature-card:hover::after,
.journey-card:hover::after,
.location-card:hover::after,
.institutional-logo-card:hover::after,
.institutional-info-card:hover::after,
.governance-card:hover::after,
.impact-card:hover::after,
.org-card:hover::after {
  opacity: 1;
  animation: sweep 950ms ease;
}

@keyframes sweep {
  from {
    left: -70%;
  }
  to {
    left: 140%;
  }
}

@keyframes panelFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 17ch;
  }

  .about-grid,
  .institutional-grid,
  .journey-grid,
  .location-grid,
  .governance-grid,
  .transparency-metrics,
  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topline-inner,
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-slide,
  .gallery-slide img {
    min-height: 0;
  }

  .gallery-slide {
    height: 320px;
  }

  .gallery-slide img {
    height: 100%;
    object-fit: contain;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4.1rem 0;
  }

  .hero {
    padding-bottom: 3.7rem;
  }

  .hero-grid {
    padding-top: 2.4rem;
  }

  .about-grid,
  .institutional-grid,
  .journey-grid,
  .gallery-preview-grid,
  .location-grid,
  .governance-grid,
  .transparency-metrics,
  .footer-content {
    grid-template-columns: 1fr;
  }
}

