/* =========================================================
   UKŁAD: TEKST PO LEWEJ + OŚ CZASU PO PRAWEJ (STICKY)
   Strona: Klub Seniora → Co robimy?
   Szablon: Cassiopeia (Joomla 4)
   ========================================================= */

/* Kontener główny: dwie kolumny */
.chaber-senior-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
  margin-top: 24px;
}

/* LEWA KOLUMNA – tekst */
.chaber-senior-text {
  flex: 1 1 58%;
  max-width: 720px;
}

.chaber-senior-text h2 {
  margin-top: 0;
}

.chaber-senior-text p {
  line-height: 1.7;
  margin-bottom: 16px;
}

/* CTA */
.chaber-senior-cta {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(31, 60, 136, 0.25);
  background: rgba(31, 60, 136, 0.06);
  font-weight: 500;
}

/* PRAWA KOLUMNA – oś czasu */
.chaber-senior-timeline {
  flex: 0 0 42%;
  display: flex;
  justify-content: flex-end;
}

/* Sticky tylko na desktopie */
@media (min-width: 992px) {
  .chaber-senior-timeline {
    position: sticky;
    top: 120px; /* jeśli nachodzi na menu – zmień np. na 140px */
    align-self: flex-start;
  }
}

/* Kontener grafiki */
.chaber-senior-figure {
  width: 100%;
  max-width: 520px;
  margin: 0;
}

/* Obraz osi czasu */
.chaber-senior-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Podpis pod grafiką (opcjonalny) */
.chaber-senior-caption {
  margin-top: 10px;
  font-size: 0.95rem;
  opacity: 0.85;
  text-align: center;
}

/* =========================================================
   RESPONSYWNOŚĆ – MOBILE / TABLET
   ========================================================= */

@media (max-width: 991.98px) {
  .chaber-senior-layout {
    flex-direction: column;
  }

  .chaber-senior-text,
  .chaber-senior-timeline {
    max-width: 100%;
    flex: 1 1 auto;
  }

  .chaber-senior-timeline {
    position: static;
    justify-content: center;
    margin-top: 24px;
  }

  .chaber-senior-figure {
    max-width: 100%;
  }
}
