/* =====================================================
   DESCRIPTION
===================================================== */

.program-description-text, .program-description-text p {
  max-width: 1000px;
  margin: auto;
  line-height: 1.7;
  font-size: 1.05rem;
  color: var(--color-text-primary);
  text-align: center;
}


/* =====================================================
   PARTNER CTA
===================================================== */

.partner-cta {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* give image more weight */
  align-items: stretch; /* IMPORTANT */

  border-radius: 22px;
  border: 1px solid rgba(0,0,0,0.08);

  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.02),
    rgba(0,0,0,0.05)
  );

  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.partner-cta-grid {
  display: grid;
  gap: var(--space-4);
}

/* Desktop layout */
@media (min-width: 768px) {
  .partner-cta-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* If only ONE CTA → center it */
.partner-cta-grid:has(.partner-cta:only-child) {
  margin: 0 auto;
}

.partner-cta__logo {
  height: 100%;
  overflow: hidden;
}

.partner-cta__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-cta__content {
  padding: var(--space-5);
}

.partner-cta__content h2 {
  text-align: left;
}

.partner-cta__content p {
  line-height: 1.7;
  opacity: 0.9;
}

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

  .partner-cta__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-4);
  }

  .partner-cta__content h2,
  .partner-cta__content p {
    text-align: center;
  }
}


/* =====================================================
   SPONSORS (SIMPLE GRID — SYSTEM ALIGNED)
===================================================== */

.program-sponsors img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: auto;
}

.sponsor-grid--simple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
  justify-items: center;
}

.sponsor-grid--simple .sponsor-grid-item {
  width: 100%;
  max-width: 160px;
}

.sponsor-grid--simple img {
  max-height: 80px;
  width: auto;
}

/* Single sponsor center */
.sponsor-grid--simple:has(.sponsor-grid-item:only-child) {
  grid-template-columns: 1fr;
  justify-items: center;
}

.sponsor-grid--simple:has(.sponsor-grid-item:only-child) .sponsor-grid-item {
  max-width: 200px;
}


/* =====================================================
   HIGHLIGHTS
===================================================== */

.initiative-highlights {
  padding: var(--space-6) 0;
  background: var(--color-surface-subtle, #fafafa);
}

.initiative-highlights .header-title {
  text-align: center;
  margin-bottom: var(--space-4);
}


/* =====================================================
   YEAR TABS
===================================================== */

#highlightTabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.highlight-pill {
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
}

.highlight-pill:hover {
  background: rgba(0,0,0,0.04);
}

.highlight-pill.active {
  background: var(--yellow-500);
  color: #fff;
  border-color: var(--yellow-700);
}


/* =====================================================
   PANELS
===================================================== */

.highlight-panel {
  display: none;
}

.highlight-panel.active {
  display: block;
}


/* =====================================================
   GRID
===================================================== */

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}

.highlight-grid:has(.highlight-card:only-child) {
  max-width: 800px;
  margin: 0 auto;
}


/* =====================================================
   CARD
===================================================== */

.highlight-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}


/* =====================================================
   MEDIA
===================================================== */

.highlight-card iframe,
.highlight-card img,
.highlight-card video {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  object-fit: cover;
}


/* =====================================================
   BODY
===================================================== */

.highlight-body {
  padding: var(--space-4);
}

.highlight-body h4 {
  margin: 0 0 var(--space-2);
  font-weight: 700;
}

.highlight-body p,
.highlight-body div {
  line-height: 1.5;
}


/* =====================================================
   ENHANCEMENTS
===================================================== */

.highlight-description {
  margin-top: var(--space-2);
}

.highlight-description p {
  margin-bottom: var(--space-1);
}

.highlight-partner {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-secondary, #666);
}

.highlight-partner strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 4px;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .highlight-pill {
    font-size: 13px;
    padding: 8px 16px;
  }

}

/* Small mobile */
@media (max-width: 580px) {

  .sponsor-grid--simple {
    grid-template-columns: repeat(2, 1fr);
  }

}