@charset "UTF-8";
/*
 * III Congreso Horizonte Rural 5.0 (2026)
 * Components added on top of digis3.css: banner extras, countdown, content sections, agenda.
 *
 * Text hierarchy used across the sections below (do not mix other sizes):
 *   h2 (section title)  clamp(1.75rem, 3.2vw, 2.4rem)
 *   h3 (card title)     1.25rem
 *   p                   1.125rem   (.lead-text: 1.25rem, intro only)
 */

:root {
  --surface-soft: #f4f6ff;
  --border-soft: #e1e5f7;
  --radius-lg: 20px;
  --shadow-soft: 0 10px 30px rgba(10, 51, 255, 0.10);
}

/* Inline SVG icons use currentColor; make sure children inherit it from the <svg>. */
svg * {
  color: inherit;
}

/* ---------------------------------------------------------------------------
   Shared text hierarchy
--------------------------------------------------------------------------- */
main h2,
.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary-color);
  margin: 0 0 1.5rem;
}

main h3,
.info-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

main p {
  font-size: 1.125rem;
  line-height: 1.65;
}

main section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* ---------------------------------------------------------------------------
   Banner: compact two-column layout (brand + dates on the left, countdown on the right)
--------------------------------------------------------------------------- */
section.banner {
  min-height: 0;
  padding: 2.5rem 0 3.5rem;
}

.banner .container {
  position: relative;
}

.banner .logo-wrap {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.banner-cta {
  max-width: 560px;
  margin: 1.5rem auto 0;
}

.banner-cta .cta-button.is-block,
.banner-cta .cta-button.is-block:hover,
.banner-cta .cta-button.is-block:focus {
  margin-top: 0;
  background: var(--primary-color);
  color: var(--secondary-color);
  box-shadow: 0 12px 28px rgba(5, 20, 110, 0.35);
}

.banner-cta a.cta-button.is-block:hover,
.banner-cta a.cta-button.is-block:focus-visible {
  background: #fff;
  color: var(--primary-color);
  box-shadow: 0 16px 34px rgba(5, 20, 110, 0.4);
}

.banner-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
  padding: 16px 34px;
  border-radius: 999px;
  background: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary-color);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(5, 20, 110, 0.22);
  transition: background-color 0.5s ease, color 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
}

.banner-link:hover,
.banner-link:focus-visible {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: scale(1.02);
  box-shadow: 0 16px 32px rgba(5, 20, 110, 0.35);
}

/* The banner link lands with the "Agenda" title near the top of the screen. */
#agenda-title {
  scroll-margin-top: -2rem; /* cancels most of the theme scroll-padding-top (4.5rem) */
}

@media (prefers-reduced-motion: reduce) {
  .banner-link {
    transition: none;
  }

  .banner-link:hover {
    transform: none;
  }
}

.banner-cta .cta-button .cta-badge {
  background: var(--secondary-color);
  color: var(--primary-color);
}

/* Laptops and desktops: banner fills the screen. Logo stays on top, content is centred. */
@media (min-width: 992px) {
  section.banner {
    min-height: min(100vh, 820px);
    min-height: min(100svh, 820px);
    align-items: stretch;
  }

  .banner .container {
    display: flex;
    flex-direction: column;
  }

  .banner .container > .row {
    margin-top: auto;
    margin-bottom: auto;
  }
}

.banner-brand {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* The sun sits next to the wordmark, not in the middle of the whole block (chips included). */
.banner-brand .icon-block {
  flex: 0 0 75px;
  width: 75px;
  margin-top: 69px;
}

.banner-brand .icon-block img.icon {
  margin-top: 0;
}

.banner-brand .banner-intro {
  min-width: 0;
  padding-top: 10px;
  padding-bottom: 10px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 18px 0 0;
  padding: 0 0 0 7px;
}

.event-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px 6px 11px;
  border-radius: 20px;
  background: rgba(18, 22, 56, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  line-height: 1.3;
  text-align: left;
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
}

.event-meta li span {
  color: inherit;
}

.event-meta .nowrap {
  white-space: nowrap;
}

.event-meta li svg {
  color: var(--secondary-color);
  flex: none;
}

/* ---------------------------------------------------------------------------
   Countdown
--------------------------------------------------------------------------- */
.countdown {
  margin: 0 auto;
  max-width: 560px;
  text-align: center;
}

.countdown-caption {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 4px 16px 5px;
  border-radius: 999px;
  background: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-color);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 20px);
}

.countdown-unit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  max-width: 128px;
  padding: clamp(12px, 2vw, 20px) clamp(8px, 1.5vw, 16px);
  border-radius: 18px;
  background: var(--primary-color);
  box-shadow: 0 14px 34px rgba(10, 51, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

/* subtle highlight across the top of every tile */
.countdown-unit::before {
  content: "";
  position: absolute;
  inset: 0 0 55% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.countdown-value {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  margin-top: 8px;
  font-size: clamp(0.58rem, 1.15vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-color);
}

.countdown-value.is-tick {
  animation: countdown-tick 0.35s ease-out;
}

@keyframes countdown-tick {
  from { transform: translateY(-30%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.countdown-message {
  display: inline-block;
  margin: 0;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--primary-color);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 14px 34px rgba(10, 51, 255, 0.35);
}

.countdown.is-finished .countdown-grid,
.countdown.is-finished .countdown-caption {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .countdown-value.is-tick {
    animation: none;
  }

  .feature-card,
  .edition-card,
  a.cta-button {
    transition: none;
  }

  .feature-card:hover,
  .edition-card:hover,
  a.cta-button:hover,
  a.cta-button:focus-visible {
    transform: none;
  }

  a.cta-button::after {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
   Intro + feature cards
--------------------------------------------------------------------------- */
.intro {
  background: #fff;
}

.lead-text {
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: left;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.intro-text > p {
  text-wrap: pretty;
}

.intro-text > p:last-child {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

main .statement {
  margin: 2rem 0 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 5px solid var(--secondary-color);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  line-height: 1.35;
}

@media (min-width: 992px) {
  main .statement {
    margin-top: 0;
  }
}

/* Each sentence on its own line (no orphan words); they wrap naturally on small screens. */
main .statement span {
  display: block;
  text-wrap: balance;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 3.5rem 0 0;
  padding: 0;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  list-style: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(10, 51, 255, 0.16);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--primary-color);
}

.feature-icon svg {
  color: var(--secondary-color);
}

/* ---------------------------------------------------------------------------
   EN RUTA
--------------------------------------------------------------------------- */
.route-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a33ff 0%, #0626c9 100%);
}

.route-section,
.route-section * {
  color: #fff;
}

.route-section .section-title,
.route-section h2 {
  color: #fff;
}

.route-section .route-tag {
  color: var(--secondary-color);
}

.route-section p {
  margin-bottom: 1.25rem;
}

.route-section strong {
  color: var(--secondary-color);
}

.route-decoration {
  position: absolute;
  right: -170px;
  bottom: 0;
  width: 560px;
  color: var(--secondary-color);
  stroke: var(--secondary-color);
  opacity: 0.3;
  pointer-events: none;
}

@media (max-width: 1199px) {
  .route-decoration {
    display: none;
  }
}

.route-section .container {
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------------------
   Editions
--------------------------------------------------------------------------- */
.editions {
  background: var(--surface-soft);
}

.editions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 3rem 0 0;
  padding: 0;
}

.edition-card {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  list-style: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.edition-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(10, 51, 255, 0.16);
}

.edition-card.is-current {
  outline: 4px solid var(--secondary-color);
  box-shadow: 0 18px 44px rgba(10, 51, 255, 0.22);
}

.edition-card.is-current:hover {
  box-shadow: 0 22px 50px rgba(10, 51, 255, 0.32);
}

.edition-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 56px 28px 28px;
}

.edition-logo img {
  display: block;
  width: min(250px, 100%);
  height: auto;
}

.edition-logo-2024 {
  background: var(--secondary-color);
}

.edition-logo-2025 {
  background: linear-gradient(160deg, #f7dc09 22%, #868981 60%, #1c3cf1 80%);
}

.edition-logo-2026 {
  background: linear-gradient(180deg, #0a33ff 0%, #ffe600 100%);
}

/* Same decorative pattern as the banner, over the 2026 gradient. */
.edition-logo-2026::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image: url('../images/pattern-2026.svg');
  background-size: 190% auto;
  background-position: 30% 0;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.edition-logo-2026 img,
.edition-logo-2026 .edition-label {
  z-index: 1;
}

.edition-logo-2026 img {
  position: relative;
}

.edition-label {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 3px 12px 5px;
  border-radius: 10px;
  background: var(--secondary-color);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary-color);
}

.edition-logo-2024 .edition-label {
  background: var(--primary-color);
  color: #fff;
}

.edition-body {
  padding: 24px 28px 30px;
}

.edition-year {
  display: block;
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--primary-color);
}

.edition-body p {
  margin: 0;
}

.edition-card.is-current .edition-body p {
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   CTA button
--------------------------------------------------------------------------- */
.cta-block {
  margin-top: 3.5rem;
  text-align: center;
}

.cta-button,
.cta-button:hover,
.cta-button:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 34px;
  border-radius: 999px;
  background: var(--secondary-color);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary-color);
  text-decoration: none;
  box-shadow: 0 0 40px 4px rgba(255, 230, 0, 0.55);
}

/* Hover effect (only on real links): lift, colour swap and a light sweep. */
a.cta-button {
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease, box-shadow 0.5s ease, background-color 0.5s ease, color 0.5s ease;
}

a.cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -75%;
  width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

a.cta-button:hover,
a.cta-button:focus-visible {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: scale(1.02);
  box-shadow: 0 14px 34px rgba(10, 51, 255, 0.45), 0 0 40px 4px rgba(255, 230, 0, 0.5);
}

a.cta-button:hover::after,
a.cta-button:focus-visible::after {
  left: 130%;
  transition: left 0.7s ease;
}

a.cta-button:active {
  transform: scale(0.99);
}

a.cta-button:hover .cta-badge,
a.cta-button:focus-visible .cta-badge {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.cta-button.is-soon {
  cursor: default;
}

.cta-button.is-block {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 1.5rem;
  text-align: center;
}

.cta-badge {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

/* ---------------------------------------------------------------------------
   Agenda + event info
--------------------------------------------------------------------------- */
.program {
  background: #fff;
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* "Mañana" / "Tarde" separators */
.agenda-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0 4px;
  padding: 0;
  list-style: none;
  font-family: 'Outfit', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.agenda-block:first-child {
  margin-top: 0;
}

.agenda-block::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border-soft);
}

.agenda-item {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 8px 24px;
  align-items: start;
  margin: 0;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  list-style: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.agenda-item:hover {
  border-color: #c3ccf5;
  box-shadow: 0 6px 18px rgba(10, 51, 255, 0.07);
}

.agenda-time {
  display: inline-block;
  justify-self: start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--primary-color);
  font-variant-numeric: tabular-nums;
}

.agenda-title {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.45;
}

.agenda-details {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.agenda-details li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 1.25rem;
  list-style: none;
  font-size: 1rem;
  line-height: 1.55;
  color: #2f3556;
}

.agenda-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-color);
}

.agenda-details li:last-child {
  margin-bottom: 0;
}

.agenda-speaker {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.agenda-speaker svg {
  flex: none;
  margin-top: 1px;
  color: var(--primary-color);
}

.agenda-item.is-break .agenda-speaker {
  background: #fff;
}

.agenda-details strong {
  font-weight: 700;
  color: var(--text-color);
}

/* Breaks: quieter, so the sessions stand out */
.agenda-item.is-break {
  background: var(--surface-soft);
  border-style: dashed;
  padding-top: 14px;
  padding-bottom: 14px;
}

.agenda-item.is-break .agenda-time {
  background: #fff;
}

.agenda-item.is-break .agenda-title {
  font-weight: 500;
}

.agenda-item.is-highlight {
  background: #fffbe0;
  border-color: #f0dc55;
  border-left: 6px solid var(--secondary-color);
  padding-left: 19px;
}

.agenda-item.is-highlight .agenda-time {
  background: var(--secondary-color);
  color: #05146e;
}

.agenda-item.is-highlight .agenda-title {
  font-weight: 700;
}

/* The theme adds top padding to <aside>; remove it so the card lines up with the "Agenda" title. */
.program aside {
  padding-top: 0;
}

.info-card {
  position: sticky;
  top: 24px;
  padding: 30px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.info-card p {
  margin: 0.5rem 0 0;
  font-size: 1.125rem;
  line-height: 1.65;
}

.info-card hr {
  margin: 1.75rem 0 1.5rem;
  opacity: 0.2;
}

.info-list {
  margin: 1.5rem 0 0;
}

.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.info-row svg {
  flex: none;
  margin-top: 2px;
  color: var(--primary-color);
}

.info-row dt {
  font-weight: 700;
  font-size: 1.125rem;
}

.info-row dd {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .feature-grid,
  .editions-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    position: static;
  }

  .event-meta {
    justify-content: center;
    padding-left: 0;
  }

  .banner .logo-wrap {
    text-align: center;
  }
}

@media (max-width: 575px) {
  main section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .agenda-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 18px;
  }

  .agenda-item.is-highlight {
    padding-left: 12px;
  }

  .info-card {
    padding: 24px;
  }
}

/* ---------------------------------------------------------------------------
   Cookies modal
--------------------------------------------------------------------------- */
.cookies-modal .modal-content {
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(5, 20, 110, 0.35);
  overflow: hidden;
}

.cookies-modal .modal-header {
  padding: 24px 28px 0;
  border: 0;
}

.cookies-modal .modal-title {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.cookies-modal .modal-body {
  padding: 16px 28px 8px;
}

.cookies-modal .modal-body p {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
}

.cookies-modal .modal-body a {
  color: var(--primary-color);
  font-weight: 600;
}

.cookies-modal .modal-footer {
  padding: 8px 28px 24px;
  border: 0;
}

.cookies-modal .cta-button {
  padding: 12px 32px;
  border: 0;
  font-size: 1rem;
  background: var(--primary-color);
  color: var(--secondary-color);
  box-shadow: 0 8px 20px rgba(10, 51, 255, 0.3);
  cursor: pointer;
}

.cookies-modal .cta-button:hover,
.cookies-modal .cta-button:focus-visible {
  background: var(--secondary-color);
  color: var(--primary-color);
}

footer a#showCookiesModal {
  cursor: pointer;
}

/* ---------------------------------------------------------------------------
   EU funding band + back to top
--------------------------------------------------------------------------- */
.funding {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-soft);
  background: #fff;
}

.funding-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2.5rem;
}

.funding-logo {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
}

.funding p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .funding-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .funding-logo {
    width: 220px;
  }
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1030;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 10px 24px rgba(10, 51, 255, 0.35);
  cursor: pointer;
  transition: transform 0.5s ease, background-color 0.5s ease, color 0.5s ease;
}

/* The arrow is always drawn in the button's text colour (white by default). */
.back-to-top svg,
.back-to-top svg * {
  stroke: currentColor;
  color: inherit;
}

.back-to-top[hidden] {
  display: none;
}

/* Over blue sections: dark navy circle so it stands out; the arrow stays white. */
.back-to-top.is-on-blue {
  background: #04136b;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 40, 0.45);
}

.back-to-top.is-on-blue:hover,
.back-to-top.is-on-blue:focus-visible {
  background: var(--primary-color);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #04136b;
  color: #fff;
  transform: scale(1.05);
}

@media (max-width: 575px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }

  .back-to-top:hover {
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
   Organizers and collaborators
--------------------------------------------------------------------------- */
.partners {
  padding: 4rem 0 3rem;
  background: #fff;
}

.partners-heading {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.75rem 3.5rem;
  margin: 0 0 3.5rem;
  padding: 0;
}

/* Organizers and collaborators: aligned to the left, logos keep their natural size. */
.partners-heading.is-left {
  text-align: left;
}

.partners-logos.is-left {
  justify-content: flex-start;
}

.partners-logos.is-left li {
  flex: 0 0 auto;
}

.partners-logos:last-child {
  margin-bottom: 0;
}

.partners-logos li {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  margin: 0;
  list-style: none;
}

/* Several logos that always travel together (same cell, never split across lines). */
.partners-logos li.is-pair a {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
}

.partners-logos li.is-pair img {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}

.partners-logos a {
  display: block;
  transition: opacity 0.3s ease;
}

.partners-logos a:hover,
.partners-logos a:focus-visible {
  opacity: 0.75;
}

/* Each logo sets --logo-h so they look the same size, whatever their built-in margins. */
.partners-logos img {
  display: block;
  width: auto;
  height: calc(var(--logo-h, 64) * 1px);
  max-width: 100%;
}

/* Extra-wide banner logos (e.g. Ostara + PRIMA): scale with the container instead of a fixed height. */
.partners-logos li.is-wide {
  flex: 1 1 520px;
  max-width: 100%;
}

.partners-logos li.is-wide a {
  width: 100%;
}

.partners-logos li.is-wide img {
  width: 100%;
  max-width: 560px;
  height: auto;
}

/* Ostara + Ministry logos: one link, always together, sized to blend in with the other logos.
   They only stack (as a pair) if the row is too narrow. */
.partners-logos li.is-group {
  flex: 1 1 auto;
  max-width: 100%;
}

.partners-logos li.is-group a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.75rem;
}

.partners-logos li.is-group img {
  flex: 0 1 auto;
  max-width: 100%;
  height: auto;
}

.partners-logos li.is-group img.is-ostara {
  width: 400px;
}

.partners-logos li.is-group img.is-miciu {
  width: 240px;
}

@media (max-width: 575px) {
  .partners {
    padding: 3rem 0 2rem;
  }

  .partners-logos {
    gap: 1.25rem 2rem;
    margin-bottom: 2.5rem;
  }

  .partners-logos img {
    height: calc(var(--logo-h, 64) * 0.75px);
  }

  .partners-logos li.is-wide img {
    height: auto;
  }
}
