/* ======== СЛАЙДЕР МЕРОПРИЯТИЙ — ЧИСТО И МИНИМАЛЬНО ======== */

/* Мобилка */
@media (max-width: 768px) {
  .event-slider-wrapper {
    max-width: 100vw !important;
    width: 100vw !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative !important;
  }

  /* сам трек — без transform, без центрирования */
  .event-slider {
    display: flex !important;
    gap: 0 !important;
    width: 100vw !important;
    position: relative !important;
    transform: none !important;
    justify-content: flex-start !important;
    will-change: auto !important;
  }

  .custom-event-card {
    min-width: 86vw !important;
    max-width: 86vw !important;
    width: 86vw !important;
    margin: 0 7vw !important;
    box-sizing: border-box !important;
  }

  .event-slider-btn {
    display: block !important;
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100 !important;
    background: rgba(255,255,255,0.92);
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: background 0.3s ease;
  }
  .event-slider-btn.left { left: 8px; }
  .event-slider-btn.right { right: 8px; }

  .custom-event-controls { margin: 16px 0 0 0 !important; text-align: center !important; }
  .all-news-button { margin: 10px auto !important; padding: 8px 20px !important; }

  .custom-event-meta {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; margin-top: 18px; margin-bottom: 18px; text-align: left;
  }
  .custom-event-location, .custom-event-date {
    font-size: 17px; font-weight: 500; color: #222; line-height: 1.2; text-align: center; margin: 0; padding: 0;
  }
  .custom-event-title { font-size: 25px; font-weight: bold; color: #222; text-align: center; padding: 5px 0; }
  .custom-event-description {
    font-size: 18px; font-weight: bold; color: #222; text-align: center;
    padding: 5px 0 0 0; margin-bottom: 0; flex: 0 0 auto; min-height: 60px;
    display: flex; align-items: flex-end; justify-content: center;
  }
}

/* Десктоп и планшет */
@media (min-width: 769px) {
  .event-slider-wrapper {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 36px !important;
    position: relative !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
  }

  /* Вьюпорт скроллится по X */
  .event-viewport {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    contain: content;
  }
  .event-viewport::-webkit-scrollbar { display: none; }

  /* ТРЕК: слева, без центрирования, без transform */
  .event-slider {
    display: flex !important;
    justify-content: flex-start !important;   /* критично */
    align-items: stretch !important;
    gap: 14px !important;
    width: auto !important;
    margin: 0 !important;
    position: relative !important;
    transform: none !important;
    will-change: auto !important;
  }

  .custom-event-card {
    min-width: 320px !important;
    width: 340px !important;
    max-width: 350px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    min-height: 300px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .custom-event-body { flex: 1 1 auto !important; display: flex !important; flex-direction: column !important; padding: 20px !important; }
  .custom-event-description { font-size: 18px; font-weight: bold; color: #222; text-align: left; padding: 5px 0 0 0; margin-bottom: 0; }
  .custom-event-meta { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; text-align: left; }
  .custom-event-location, .custom-event-date { font-size: 17px; font-weight: 500; color: #222; line-height: 1.2; text-align: left; margin: 0; padding: 0; }
  .custom-event-button { margin-top: 0; }
}

/* ВНЕ media — только самое нужное */
.ne_title { text-align: center; margin: 20px 0; font-size: 2.5em; }
.all-news-button {
  display: inline-block; padding: 10px 20px; background-color: #7000FF;
  color: #fff; font-family: "Onest", sans-serif; font-size: 1em; font-weight: 500;
  border-radius: 25px; text-transform: uppercase; transition: background-color .3s ease;
}
.all-news-button:hover { background-color: #5A007D; }

/* Кнопки прокрутки (если используешь) */
.event-slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255,255,255,0.8); border: none; font-size: 24px; cursor: pointer; padding: 10px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.2); transition: background .3s ease; }
.event-slider-btn:hover { background: #e0e0e0; }
.event-slider-btn.left { left: 1px; }
.event-slider-btn.right { right: 1px; }
