/* ── gans/certificates-gallery ──────────────────────────────────────────────── */

.gans-certs {
  background: var(--cloud);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(4rem, 8vw, 5rem) clamp(1.5rem, 4vw, 3rem);
}

.gans-certs__inner {
  max-width: 1440px;
  margin-inline: auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */

.gans-certs__eyebrow {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--gold);
}

.gans-certs__title {
  margin-top: 1.25rem;
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  line-height: 1.1;
  color: var(--stone);
  text-wrap: balance;
  max-width: 36rem;
}

.gans-certs__title .highlight {
  font-weight: 500;
  color: var(--gold);
}

/* ── Stage ──────────────────────────────────────────────────────────────────── */

.gans-certs__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 24rem;
  height: 24rem;
}

.gans-certs__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.gans-certs__slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.gans-certs__logo-wrap {
  height: 7rem;
  width: min(360px, 75vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gans-certs__logo {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 7rem;
  object-fit: contain;
  object-position: center;
}

.gans-certs__programme {
  display: block;
  margin-top: 1.75rem;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--gold);
}

.gans-certs__name {
  margin-top: 0.75rem;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  color: var(--stone);
  text-wrap: balance;
  max-width: 40rem;
}

.gans-certs__desc {
  margin-top: 0.5rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--iron, #7d7d7d);
}

/* ── Footer — indicators + progress ────────────────────────────────────────── */

.gans-certs__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.gans-certs__indicators {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 2.5rem;
}

.gans-certs__tab {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
}

.gans-certs__tab-label {
  font-size: 11px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--iron) 60%, transparent);
  transition: color 0.3s ease;
}

.gans-certs__tab.is-active .gans-certs__tab-label,
.gans-certs__tab:hover .gans-certs__tab-label {
  color: var(--stone);
}

.gans-certs__tab-line {
  display: block;
  height: 1px;
  width: 1.25rem;
  background: color-mix(in srgb, var(--iron) 25%, transparent);
  transition: width 0.5s cubic-bezier(0.16,1,0.3,1), background 0.5s ease;
}

.gans-certs__tab.is-active .gans-certs__tab-line {
  width: 3rem;
  background: var(--gold);
}

.gans-certs__tab:hover:not(.is-active) .gans-certs__tab-line {
  width: 2rem;
  background: var(--iron, #7d7d7d);
}

/* ── Progress bar ───────────────────────────────────────────────────────────── */

.gans-certs__progress {
  position: relative;
  height: 1px;
  width: min(28rem, 80vw);
  background: color-mix(in srgb, var(--stone) 10%, transparent);
  overflow: hidden;
}

.gans-certs__progress-fill {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

@media (prefers-reduced-motion: reduce) {
  .gans-certs__slide {
    transition: opacity 0.3s ease;
    transform: none !important;
  }
  .gans-certs__progress-fill {
    display: none;
  }
}
