/* SDG Hub page: hero (title, message, President), SDG wheel and highlights.
   The hero text is edited in the SDG dashboard's "SDG Hub Page" tab. */

.sdg-hub {
  --hub-navy: #0b2c6b;
  --hub-ink: #1d2740;
  --hub-muted: #4a5672;
  --hub-gold: #c99a3c;
  --hub-tint: #f5f8fd;
  /* Matches the site background (Base.css) so the hero fades into the page */
  --hub-page: #fff2e1;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* ---------- Hero ---------- */

.hub-hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) 1.25rem 6.5rem;
  background:
    linear-gradient(180deg, rgba(255, 242, 225, 0) 68%, var(--hub-page) 100%),
    linear-gradient(90deg, rgba(246, 249, 254, 0.97) 0%, rgba(246, 249, 254, 0.92) 38%, rgba(246, 249, 254, 0.45) 70%, rgba(246, 249, 254, 0.25) 100%),
    var(--hub-bg) center / cover no-repeat;
}

.hub-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 1400px;
  margin: 0 auto;
}

.hub-eyebrow {
  margin: 0 0 1rem;
  color: var(--hub-navy);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hub-title {
  margin: 0;
  color: var(--hub-navy);
  font-size: clamp(2rem, 3.9vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hub-rule {
  display: block;
  width: 72px;
  height: 4px;
  margin: 1.4rem 0;
  border-radius: 2px;
  background: var(--hub-gold);
}

.hub-message {
  max-width: 36rem;
  color: var(--hub-ink);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.6;
}

.hub-message p {
  margin: 0 0 0.8rem;
}

/* ---------- President ---------- */

.hub-president {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.hub-president__photo {
  flex: none;
  width: clamp(110px, 11vw, 150px);
  aspect-ratio: 1;
  border: 4px solid #fff;
  border-radius: 50%;
  outline: 2px solid var(--hub-gold);
  object-fit: cover;
  object-position: top;
  box-shadow: 0 8px 24px rgba(11, 44, 107, 0.18);
}

.hub-president__info {
  min-width: 0;
}

.hub-president__signature {
  display: block;
  max-width: 180px;
  max-height: 56px;
  margin-bottom: 0.2rem;
  object-fit: contain;
  object-position: left;
}

.hub-president__name {
  margin: 0;
  color: var(--hub-navy);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hub-president__role {
  margin: 0;
  color: var(--hub-ink);
  font-size: 0.92rem;
}

.hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b2c6b, #1d4f9c);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(11, 44, 107, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-btn:hover,
.hub-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(11, 44, 107, 0.32);
}

/* ---------- SDG wheel ---------- */

.hub-wheel svg {
  display: block;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  overflow: visible;
}

.hub-wheel__rim {
  fill: #fff;
  filter: drop-shadow(0 14px 30px rgba(11, 44, 107, 0.18));
}

.hub-wheel__core {
  fill: #fff;
  stroke: #e7edf6;
  stroke-width: 2;
  filter: drop-shadow(0 4px 14px rgba(11, 44, 107, 0.12));
}

.hub-wedge {
  transition: transform 0.25s ease, filter 0.25s ease;
}

.hub-wedge path {
  stroke: #fff;
  stroke-width: 3;
}

.hub-wedge text {
  fill: #fff;
  text-decoration: none;
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  pointer-events: none;
}

.hub-wedge__num {
  font-size: 26px;
  font-weight: 600;
}

.hub-wedge__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hub-wheel a:hover .hub-wedge,
.hub-wheel a:focus-visible .hub-wedge {
  transform: translate(var(--dx), var(--dy));
  filter: brightness(1.08) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}

.hub-wheel a {
  text-decoration: none;
}

.hub-wheel a:focus-visible {
  outline: none;
}

.hub-core__title,
.hub-core__tag {
  font-family: 'Poppins', sans-serif;
}

.hub-core__title {
  fill: var(--hub-navy);
  font-size: 38px;
  font-weight: 800;
}

.hub-core__tag {
  fill: var(--hub-navy);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* ---------- Highlights ---------- */

.hub-highlights {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1400px;
  margin: -4rem auto 1.5rem;
  padding: 0 1.25rem;
}

.hub-highlight {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid #edf1f7;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--hub-muted);
  font-size: 0.95rem;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(11, 44, 107, 0.08);
}

a.hub-highlight {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.hub-highlight:hover {
  color: var(--hub-muted);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(11, 44, 107, 0.14);
}

.hub-highlight i {
  flex: none;
  width: 3rem;
  color: var(--hub-gold);
  font-size: 2.4rem;
  text-align: center;
}

.hub-highlight strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--hub-ink);
  font-size: 1.15rem;
  font-weight: 700;
}

/* ---------- Commitment modal ---------- */

.hub-modal {
  font-family: 'Poppins', sans-serif;
}

.hub-modal .modal-title {
  color: var(--hub-navy, #0b2c6b);
  font-size: 1.35rem;
  font-weight: 700;
}

.hub-modal__message {
  color: #1d2740;
  font-size: 1.02rem;
  line-height: 1.7;
}

.hub-president--modal {
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e7edf6;
}

.hub-president--modal .hub-president__photo {
  width: 90px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199.98px) {
  .hub-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .hub-hero {
    background:
      linear-gradient(180deg, rgba(246, 249, 254, 0.94) 0%, rgba(246, 249, 254, 0.88) 60%, var(--hub-page) 100%),
      var(--hub-bg) center / cover no-repeat;
  }

  .hub-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-wheel svg {
    max-width: 480px;
  }
}

@media (max-width: 575.98px) {
  .hub-hero {
    padding: 2rem 1rem 5.5rem;
  }

  .hub-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
  }

  .hub-president {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hub-highlights {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0 1rem;
  }

  .hub-highlight {
    padding: 1.1rem 1.25rem;
  }
}
