.topnav_head {
  overflow: hidden;
  background-color: #333;
}

.topnav_head a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.active_head {
  background-color: #4caf50;
  color: white;
}

.topnav_head {
  display: none;
}
.icon {
  display: none;
}

.dropdown_head {
  display: inline;
}

.dropdown_head .dropbtn_head {
  font-size: 17px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

.dropdown-content_head {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content_head a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.topnav_head a:hover,
.dropdown_head:hover .dropbtn_head {
  background-color: #555;
  color: white;
}

.dropdown-content_head a:hover {
  background-color: #ddd;
  color: black;
}

.dropdown_head:hover .dropdown-content_head {
  display: block;
}
.vertical-center {
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}
.menu-top2 {
  display: inline; /* Располагаем элементы по горизонтали */
  list-style: none; /* Убираем маркеры списка */
  padding: 5px; /* Поля вокруг текста */
  border: solid 1px #000000;
}
.events {
  padding-top: 8%;
}
.events ul {
  height: 47vh;
}

.events ul textarea {
  width: 100%;
}

h2 {
  font-weight: bold;
  font-size: 2em;
  margin-bottom: 50px;
}
h2 .underline-text:after {
  bottom: -2px;
}
.events__list {
  display: inline-block;
  margin-bottom: 50px;
}
.events__item {
  padding: 40px;
  width: 18rem;
  margin-bottom: 10%;
}
.events__item img {
  width: 100%;
}
.events__item-head {
  display: flex;
  line-height: 1.222em;
  font-weight: 700;
  margin-top: 23px;
  margin-bottom: 11px;
}
.events__item-text {
  font-weight: 500;
  line-height: 1.222em;
  height: 124px;
  overflow-y: auto;
  margin-bottom: 11px;
  display: block;
}
.events .blue-btn,
.education .blue-btn {
  margin: 0 auto;
  display: block;
}
.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color 0.3s;
}
.pagination a.active {
  background-color: dodgerblue;
  color: white;
}
.pagination a:hover:not(.active) {
  background-color: #ddd;
}
