.my-slider {
  width: 300px;
  height: 400px;
  overflow: hidden;
  position: relative;
  margin: 20px auto;
  border: 1px solid #ccc;
  background: #fff;
}
/* Подгоняем картинку под размер .my-slider */
.my-slider .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.my-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* или contain, если нужно вписать всю картинку без обрезки */
  background: #fff;
}



.my-slides {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.my-slide {
  flex: 0 0 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}


.my-slide img {
  max-height: 400px;
  max-width: 100%;
  object-fit: contain;
  background: #fff;
}

.my-prev, .my-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  background-color: rgba(255,255,255,0.7);
  border: none;
  cursor: pointer;
  z-index: 2;
}

.my-prev { left: 10px; }
.my-next { right: 10px; }


.my-description-block h5 {
  margin-top: 0;
  font-weight: bold;
}

.redirect-button {
		    display: inline-block;
		    padding: 10px 20px; /* Отступы для кнопки */
		    font-size: 16px; /* Размер шрифта */
		    color: white; /* Цвет текста */
		    background-color: #00A8E1; /* Цвет фона */
		    border-radius: 25px; /* Скругление углов */
		    text-decoration: none; /* Убираем подчеркивание */
		    text-align: center; /* Центрирование текста */
		    transition: background-color 0.3s; /* Плавный переход цвета фона */

		}

.redirect-button:hover {
    background-color: #008CC1; /* Цвет фона при наведении */
    height: 40px;
    width: 100px;
}

.redirect-button,
.redirect-button:visited,
.redirect-button:hover {
    color: white !important;
}

.my-candidate {
    text-align: center;
    margin-bottom: 40px; /* отступ между блоками */
}


.after-slider-message {
    text-align: center;
    margin-top: 50px;
}

.after-slider-message h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.after-slider-message p {
    font-size: 18px;
}

.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.vote-container-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
  margin-bottom: 40px;
}



.vote-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.news-section {
  margin-top: 60px;
}


.candidate-card {
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 180px; /* 👈 фиксированная ширина */
  flex-shrink: 0;
}

.candidate-card img {
  width: 100%;
  height: 240px; /* 👈 фиксированная высота */
  object-fit: cover; /* Обрезка по контейнеру */
  border-radius: 10px;
}

.candidate-name {
  font-weight: bold;
  margin-top: 10px;
}

.vote-button {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #00A8E1;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.vote-button:hover {
  background-color: #008CC1;
}

.description-block strong:first-child {
  font-size: 1.25em;
  display: block;
  margin-bottom: 0.5em;
}
