.carousel {
  min-height: 100vh;
  position: relative;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
}

.progress-bar__fill {
  width: 0;
  height: inherit;
  background: #9D94D1;
  transition: all 0.16s;
}

.progress-bar--primary {
  z-index: 2;
}

.main-post-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
}

.slides {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.main-post {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.main-post__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  bottom: 0;
}

.main-post__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.main-post__image::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 13, 14, 0.5);
}

.main-post__content {
  position: absolute;
  top: 40%;
  left: 4%;
  transform: translateY(-40%);
  color: #fff;
  width: 90%;
}

.main-post__tag-wrapper {
  margin: 0;
  display: inline-flex;
  overflow: hidden;
}

.main-post__tag {
  font-size: 0.95em;
  background: #163856;
  padding: 6px 18px;
}

.main-post__title {
  font-weight: 600;
  font-family: Montserrat, Arial, sans-serif;
  color: #FFF;
  font-size: 1.95em;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  margin: .67em 0;
}

.main-post__link {
  text-decoration: none;
  color: #FFF;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: Montserrat, Arial, sans-serif;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.main-post__link-text {
  font-size: 0.9em;
}

.main-post__link-icon--arrow {
  margin-left: 12px;
}

.main-post__link-icon--play-btn {
  margin-right: 12px;
}

.main-post__link:hover,
.main-post__link:hover .main-post__link-text {
  color: #9EB759;
}

.main-post--active {
  top: 0;
  z-index: 1;
  transition: top 0.9s 0.4s ease-out;
}

.main-post--not-active {
  top: 100%;
  z-index: 0;
  transition: top 0.75s 2s;
}

.main-post.main-post--active .main-post__tag-wrapper {
  width: 25%;
  transition: all 0.98s 1.9s;
}

.main-post.main-post--not-active .main-post__tag-wrapper {
  width: 0;
  transition: width 0.3s 0.2s;
}

.main-post.main-post--active .main-post__title {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s 1.42s, transform 0.5s 1.4s;
}

.main-post.main-post--not-active .main-post__title {
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.2s 0.35s, opacity 0.5s 0.2s;
}

.main-post.main-post--active .main-post__link {
  opacity: 1;
  transition: opacity 0.9s 2.2s;
}

.main-post.main-post--not-active .main-post__link {
  opacity: 0;
  transition: opacity 0.5s 0.2s;
}

.posts-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 14px;
  position: absolute;
  bottom: 0;
  max-width: 95%;
  margin: auto;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 1;
}

.post {
  background: rgba(14, 13, 14, 0.6);
  opacity: 0.3;
  color: #FFF;
  position: relative;
  padding: 16px 20px;
  transition: opacity 0.2s linear;
}

.post__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8em;
}

.post__tag {
  color: #80837e;
}

.post__title {
  font-weight: 400;
  font-family: Montserrat, Arial, sans-serif;
  color: #fff;
  font-size: 0.95em;
  line-height: 1.5;
}

.post--active {
  opacity: 1;
  background: rgba(14, 13, 14, 0.75);
  pointer-events: none;
}

.post--disabled {
  pointer-events: none;
}

.post:hover {
  cursor: pointer;
  opacity: 1;
}

.hide-on-mobile {
  display: none;
}

@media screen and (min-width: 768px) {
  .main-post__title {
    font-size: 2.9em;
  }
}

@media screen and (min-width: 1024px) {
  .hide-on-mobile {
    display: grid;
  }

  .hide-on-desktop {
    display: none;
  }
}

@media screen and (min-width: 1440px) {
  .main-post__content {
    width: 45%;
  }

  .posts-wrapper {
    left: 80%;
    transform: translateX(-80%);
    max-width: 70%;
  }
}

  /* Visually hidden for screen readers */
  .visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
  }

  /* SVG sizing */
  .grow-link-arrow-icon {
    width: 24px;
    height: 24px;
    overflow: visible;
  }

  /* Group that moves chevron right */
  .arrow-group {
    transition: transform 0.3s ease;
    transform-origin: 18px 16px; /* base of the chevron */
  }

  /* Arrow line starts scaled down from the right base of chevron */
  .arrow-line {
    transform-origin: 18px 16px; /* exactly chevron base */
    transform: scaleX(0);
    transition: transform 0.3s ease 0.15s, stroke 0.3s ease 0.15s;
    stroke: currentColor;
  }

  /* Chevron stroke color transition */
  .arrow-chevron {
    transition: stroke 0.3s ease;
    stroke: currentColor;
  }

  /* Hover/focus state: chevron moves right, line grows left */
  .animated-arrow-link:hover .arrow-group,
  .animated-arrow-link:focus .arrow-group {
    transform: translateX(2px);
  }
  .animated-arrow-link:hover .arrow-line,
  .animated-arrow-link:focus .arrow-line {
    transform: scaleX(1);
    stroke: #9EB759!important;
  }
  .animated-arrow-link:hover .arrow-chevron,
  .animated-arrow-link:focus .arrow-chevron {
    stroke: #9EB759!important;
  }
  .animated-arrow-link:hover .link-text,
  .animated-arrow-link:focus .link-text {
    color: #FFF;
  }