/* =========================================================
   FM Aktualności Slider – KAFELKI jak na screenie + poprawki
   - 3 kafelki na desktop
   - tło z obrazka wpisu + overlay (gradient)
   - tytuł + zajawka na dole po lewej
   - strzałki NA DOLE (ładne, subtelne)
   ========================================================= */

.fm-news-slider{
  position: relative;
  width: 100%;
  /* miejsce na strzałki pod sliderem */
  padding-bottom: 72px;
}

/* =========================
   VIEWPORT / TRACK
   ========================= */

.fm-news-viewport{
  overflow: hidden;
  width: 100%;
  outline: none;

  /* ważne: nie dokładamy tu paddingów/marginesów,
     żeby kafle nie "uciekały" w dół */
  margin: 0 !important;
  padding: 0 !important;
}

.fm-news-track{
  display: flex;
  gap: 24px;
  will-change: transform;
}

/* 3 kafle jak na screenie */
.fm-news-slide{
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
}

@media (max-width: 1024px){
  .fm-news-slide{ flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 767px){
  .fm-news-slide{ flex-basis: 100%; }
}


/* =========================
   KAFEL – tło jak na screenie
   ========================= */

.fm-news-card{
  position: relative;
  display: block;
  width: 100%;
  height: 240px;               /* dopasowane pod screen */
  border-radius: 8px;          /* jak na screenie */
  overflow: hidden;
  text-decoration: none !important;

  /* tło z obrazka wpisu */
  background-image: var(--fm-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  /* jeśli brak obrazka – neutralne tło */
  background-color: #0b1220;

  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

.fm-news-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.14);
}

/* overlay / filtr – jak w screenie */
.fm-news-overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.10) 0%,
      rgba(0,0,0,0.45) 55%,
      rgba(0,0,0,0.80) 100%
    );
}

/* teksty na dole po lewej */
.fm-news-text{
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
}

/* tytuł */
.fm-news-title{
    font-family: var(--e-global-typography-520c191-font-family), Sans-serif;
    font-size: var(--e-global-typography-520c191-font-size);
    font-weight: var(--e-global-typography-520c191-font-weight);
    line-height: var(--e-global-typography-520c191-line-height);
	margin-block-end: 10px;
    color: var(--e-global-color-text);
}

/* zajawka */
.fm-news-desc{
    font-family: var(--e-global-typography-b2ce6af-font-family), Sans-serif;
    font-size: var(--e-global-typography-b2ce6af-font-size);
    font-weight: var(--e-global-typography-b2ce6af-font-weight);
    text-transform: var(--e-global-typography-b2ce6af-text-transform);
    font-style: var(--e-global-typography-b2ce6af-font-style);
    line-height: var(--e-global-typography-b2ce6af-line-height);
    color: var(--e-global-color-14caab8);
}


/* =========================
   STRZAŁKI – na dole, ładniejsze
   ========================= */

/* kontener strzałek */
.fm-news-slider-head{
  position: absolute;
  bottom: 12px;                /* wewnątrz dolnego paddingu slidera */
  right: 0;                    /* po prawej (jak na Twoim screenie) */
  display: flex;
  gap: 12px;
  z-index: 3;
}

/* przyciski */
.fm-news-nav{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: #c7b9ff;         /* jasny fiolet */
  color: #4b3fa7;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: none;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.fm-news-nav:hover{
  background: #b8a8ff;
  transform: translateY(-1px);
}

.fm-news-nav:disabled{
  opacity: 0.4;
  cursor: default;
  transform: none;
}

/* znak strzałki */
.fm-news-nav span{
  display: block;
  line-height: 1;
  font-size: 22px;
}


/* =========================
   INFO / PUSTE
   ========================= */

.fm-news-empty{
  padding: 14px 16px;
  border: 1px dashed rgba(17, 24, 39, 0.25);
  border-radius: 12px;
  color: #111827;
  background: rgba(255,255,255,0.6);
}


/* =========================
   REDUCED MOTION
   ========================= */

@media (prefers-reduced-motion: reduce){
  .fm-news-card, .fm-news-nav{ transition: none !important; }
}
