.history {
  margin: 40px 0;
}
.history__top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.history__swiper {
  margin-top: 40px;
  padding-top: 30px;
}
.history__swiper .swiper-navigation {
  margin-bottom: 40px;
  display: flex;
  gap: 32px;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
}
.history__swiper .swiper-prev,
.history__swiper .swiper-next {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid #E3E3E3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
}
.history__swiper .swiper-prev svg path,
.history__swiper .swiper-next svg path {
  fill: #2E2E2E !important;
  transition: fill 0.3s ease;
}
.history__swiper .swiper-prev:hover,
.history__swiper .swiper-next:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}
.history__swiper .swiper-pagination {
  position: relative;
  display: flex;
  overflow: visible;
  flex-direction: row;
  gap: 30px;
  justify-content: space-evenly;
  width: 100%;
}
.history__swiper .swiper-pagination::after {
  content: "";
  position: absolute;
  width: 100%;
  background-color: #D6D6D6;
  height: 1px;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.history__swiper .swiper-pagination-bullet {
  width: 24px;
  background-color: #D6D6D6;
  height: 24px;
  border-radius: 50%;
  display: block;
  position: relative;
  cursor: pointer;
}
.history__swiper .swiper-pagination-bullet span {
  color: #D6D6D6;
  font-family: Manrope;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.32px;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.history__swiper .swiper-pagination-bullet {
  display: none;
}
.history__swiper .swiper-pagination-bullet-active {
  display: block;
  z-index: 1;
  background-color: var(--primary);
}
.history__swiper .swiper-pagination-bullet-active span {
  color: #000000;
}
.history__swiper .swiper-pagination-bullet-active + .swiper-pagination-bullet {
  display: block;
}
.history__swiper .swiper-pagination-bullet:has(+ .swiper-pagination-bullet-active) {
  display: block;
}
.history__card__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: 8px;
  border: 1px solid #D9D9D9;
  padding: 30px 30px 60px;
  margin-left: 30px;
  margin-right: 30px;
}
.history__card__date {
  color: #0075BE;
  font-family: Manrope;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.4px;
}
.history__card__image {
  margin-top: -30px;
}
.history__card__image img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}
.history__card__content h3 {
  margin-bottom: 24px;
}

@media (min-width: 900px) {
  .history__swiper .swiper-pagination-bullet-active + .swiper-pagination-bullet {
    display: block;
  }
  .history__swiper .swiper-pagination-bullet-active + .swiper-pagination-bullet + .swiper-pagination-bullet {
    display: block;
  }
  .history__swiper .swiper-pagination-bullet:has(+ .swiper-pagination-bullet + .swiper-pagination-bullet-active), .history__swiper .swiper-pagination-bullet:has(+ .swiper-pagination-bullet-active) {
    display: block;
  }
  .history__top {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
  }
  .history__heading {
    grid-column: 1/5;
  }
  .history__text {
    grid-column: 8/13;
  }
  .history__card {
    display: flex;
    flex-direction: row;
  }
  .history__card__image {
    margin-top: 0;
    margin-left: -50px;
    aspect-ratio: 251/141;
  }
}
@media (min-width: 1200px) {
  .history {
    margin: 110px 0;
  }
  .history__swiper {
    margin-top: 120px;
  }
  .history__swiper .swiper-navigation {
    margin-bottom: 100px;
  }
  .history__card {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
  }
  .history__card__content {
    margin: 0;
    padding-right: 100px;
    height: fit-content;
  }
  .history__card__image {
    width: 500px;
    flex-shrink: 0;
  }
  .history__card__date {
    font-size: 20px;
  }
}