/* neutralise homepage/base.html #page container */
#page.container-fluid { padding: 0; max-width: none; width: 100%; }

/* ── generic flatpage layout ── */
.gr-flatpage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gr-flatpage__header {
  width: 100%;
  background-color: #f8f9fb;
  display: flex;
  justify-content: center;
}

.gr-flatpage__header-inner {
  width: 100%;
  max-width: 1200px;
  padding: 40px 16px;
}

.gr-flatpage__title {
  font-family: 'Parkinsans', 'Helvetica Neue', Arial, sans-serif;
  color: #22252a;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: -1px;
  margin: 0;
}

.gr-flatpage__body {
  width: 100%;
  max-width: 1200px;
  padding: 48px 16px 80px;
}

.gr-flatpage__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 32px;
}

.gr-flatpage__content {
  font-family: 'DMSans', 'Helvetica Neue', Arial, sans-serif;
  color: #22252a;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.4px;
}

.gr-flatpage__content h2 {
  font-family: 'Parkinsans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 31px;
  line-height: 37.2px;
  letter-spacing: -1px;
  font-weight: 400;
  margin: 40px 0 16px;
}

.gr-flatpage__content h3 {
  font-family: 'Parkinsans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 24px;
  line-height: 28.8px;
  font-weight: 400;
  margin: 32px 0 12px;
}

.gr-flatpage__content p { margin: 0 0 16px; }
.gr-flatpage__content ul,
.gr-flatpage__content ol { margin: 0 0 16px; padding-left: 24px; }
.gr-flatpage__content li { margin-bottom: 8px; }
.gr-flatpage__content a { color: #e40148; }
.gr-flatpage__content a:hover { text-decoration: underline; }

@media only screen and (max-width: 991px) {
  .gr-flatpage__header-inner { padding: 24px 16px; }
  .gr-flatpage__title { font-size: 31px; line-height: 37.2px; }
  .gr-flatpage__body { padding: 32px 16px 56px; }
}
/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.initiatives-hero {
  padding: 53px 16px 64px;
  width: 100%;
  max-width: 1200px;
}

/* Treściowa sekcja hero (opis + tagi) idzie tuż pod nagłówkiem —
   bez własnego górnego paddingu, żeby odstęp nie był podwojony */
.gr-flatpage__body .initiatives-hero {
  padding-top: 0;
}

/* Sekcja nagłówka — mniejszy dolny padding, tak jak gap 40px w projekcie */
.gr-flatpage > .initiatives-hero {
  padding-bottom: 40px;
}

.initiatives-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.initiatives-hero__heading {
  font-family: 'Parkinsans', 'Helvetica Neue', Arial, sans-serif;
  color: #22252a;
  max-width: 792px;
  font-size: 70px;
  font-style: normal;
  font-weight: 400;
  line-height: 84px;
  margin: 0;
}

.initiatives-hero__description {
  font-family: 'Parkinsans', 'Helvetica Neue', Arial, sans-serif;
  color: #22252a;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.4px;
  font-weight: 300;
  max-width: 991px;
  margin: 0;
}

.initiatives-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ═══════════════════════════════════════════════════════════
   CARDS SECTION
═══════════════════════════════════════════════════════════ */
.initiatives-cards {
  width: 100%;
  max-width: 1200px;
  padding: 0 16px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* ═══════════════════════════════════════════════════════════
   INITIATIVE CARD
═══════════════════════════════════════════════════════════ */
.initiative-card {
  position: relative;
  width: 100%;
  height: 446px;
  border: 8px solid #f8f9fb;
  border-radius: 20px;
}

.initiative-card__image-wrapper {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 50%;
  height: calc(100% + 16px);
  border-radius: 20px;
  overflow: hidden;
}

.initiative-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.initiative-card__content {
  margin-left: 50%;
  padding: 64px 40px 64px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  box-sizing: border-box;
}

.initiative-card__heading-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.initiative-card__subtitle {
  font-family: 'DMSans', 'Helvetica Neue', Arial, sans-serif;
  color: #22252a;
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  margin: 0;
}

.initiative-card__title {
  font-family: 'Parkinsans', 'Helvetica Neue', Arial, sans-serif;
  color: #22252a;
  font-size: 40px;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: -1px;
  margin: 0;
}

.initiative-card__description {
  font-family: 'DMSans', 'Helvetica Neue', Arial, sans-serif;
  color: #22252a;
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media only screen and (max-width: 991px) {
  .initiatives-hero { padding: 24px 16px 32px; }
  .initiatives-hero__content { gap: 24px; }
  .initiatives-hero__heading { font-size: 31px; line-height: 37.2px; letter-spacing: -1px; }
  .initiatives-hero__description { font-size: 16px; }
  .initiatives-cards { padding: 0 16px 32px; }
  .initiative-card { height: auto; }
  .initiative-card__image-wrapper {
    position: relative;
    top: -8px;
    left: -8px;
    width: calc(100% + 16px);
    height: 249px;
  }
  .initiative-card__content { margin-left: 0; padding: 16px 24px 32px; height: auto; }
  .initiative-card__subtitle { font-size: 14px; line-height: 19.6px; }
  .initiative-card__title { font-size: 31px; line-height: 37.2px; }
  .initiative-card__description { flex: unset; display: block; overflow: visible; -webkit-line-clamp: unset; }
}