/* Стили для секции событий (карусель) */
.events-section {
  background: rgba(0, 0, 0, 0.5);
  padding: 25px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  width: 100%;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.events-section h2 {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 1.8em;
  color: #ffdd59;
  text-align: center;
}

/* Карусель */
.events-carousel {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.carousel-track {
  flex: 1;
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 20px;
  width: 100%;
}

/* Карточки слайдов */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.5s ease;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1.02);
}

/* Контент внутри слайдов */
.carousel-slide .news-content {
  text-align: center;
  padding: 0;
}

.carousel-slide h3 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #ffdd59;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-slide .news-date {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
  font-style: italic;
}

.carousel-slide p {
  font-size: 1.2em;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

/* Кнопки карусели */
.carousel-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Точки навигации */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-dot.active {
  background: #ffdd59;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 221, 89, 0.5);
}

/* Общие стили для форм админки */
.admin-news-form {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.admin-news-form h3 {
  margin-top: 0;
  color: #ffdd59;
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: white;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #6e48aa;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Превью изображений */
.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.preview-image {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-image .remove-image {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #ff4757;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}

.add-news-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  background: #00b894;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.add-news-btn:hover {
  background: #00d8a7;
}

.delete-news-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background: #ff4757;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10;
  font-size: 0.8em;
}

.delete-news-btn:hover {
  background: #ff6b81;
}

/* Адаптивность для карусели */
@media (max-width: 768px) {
  .events-section {
    min-height: 450px;
    padding: 20px;
    border-radius: 15px;
  }
  
  .carousel-track {
    height: 350px;
  }
  
  .carousel-slide {
    padding: 30px;
  }
  
  .carousel-slide h3 {
    font-size: 1.6em;
  }
  
  .carousel-slide p {
    font-size: 1.1em;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .events-section {
    min-height: 400px;
    padding: 15px;
  }
  
  .carousel-track {
    height: 300px;
  }
  
  .carousel-slide {
    padding: 20px;
  }
  
  .carousel-slide h3 {
    font-size: 1.4em;
  }
}