/* =========================================================
   SCHEDULE
   Najbliższe terminy (z Google Calendar iCal)
   ========================================================= */

.schedule__list {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

/* Karta terminu */
.schedule-item {
  display: grid;

  /* data | tytuł (tylko tyle ile trzeba) | "pustka" | przycisk */
  grid-template-columns: 220px max-content 1fr auto;

  column-gap: 16px;
  row-gap: 6px;
  align-items: start;

  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(12, 18, 28, 0.06);
  padding: 16px 18px;
}

.schedule-item__left {
  display: grid;
  gap: 4px;
}

.schedule-item__date {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.schedule-item__time {
  color: rgba(0, 0, 0, 0.7);
  font-size: 14px;
}

/* środkowa kolumna z tytułem i meta */
.schedule-item__main {
  justify-self: start;
  text-align: left;
}

.schedule-item__title {
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap; /* opcjonalnie: usuń, jeśli chcesz zawijanie */
}

.schedule-item__meta {
  margin-top: 4px;
  color: rgba(0, 0, 0, 0.7);
  font-size: 14px;
}

/* prawa kolumna */
.schedule-item__right {
  justify-self: end;
}

.schedule-item__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;

  background: #0f2b4b;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.schedule-item__link:hover {
  filter: brightness(1.05);
}

/* Stan pusty */
.schedule__empty {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.75);
}

.schedule__footnote {
  margin-top: 14px;
  color: rgba(0, 0, 0, 0.65);
  font-size: 14px;
}

.schedule-item--link {
  text-decoration: none;
  color: inherit;
}

.schedule-item--link * {
  text-decoration: none;
}

/* RWD */
@media (max-width: 820px) {
  .schedule-item {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .schedule-item__right {
    justify-self: start;
    margin-top: 6px;
  }

  .schedule-item__link {
    width: fit-content;
  }

  .schedule-item__title {
    white-space: normal;
  }
}