@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

:root {
  --colorProgress: #128e8e;
  --colorProgressBg: hsl(0 0% 90%);
  --duration-filling: 3000ms;
}

/* page */
.body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 0.875rem;
  font-family: "Poppins", sans-serif;
}

/* swiper */
.swiper-up {
  --primary-br: 20px;
  width: min(100%, 62.5rem);
  border-radius: var(--primary-br);
}
.swiper {
  position: relative;
}
.swiper-up__slide {
  display: grid;
  place-items: center;
  min-height: 25rem;
  font-size: 2.5rem;
  border-radius: var(--primary-br);
  /* background-color: hsl(0, 0%, 0%); */
}

/* pagination container */
.pagination-swiper-up {
  display: flex;
  width: 100%;
  height: fit-content;
  position: absolute;
  top: 1rem;
  left: 0rem;
  justify-content: space-between;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem;
}

/* bullet → line */
.swiper-pagination-bullet {
  width: 2.5rem;
  height: 0.125rem;
  background-color: var(--colorProgressBg);
  flex-grow: 1;
  border-radius: 999px;
  opacity: 1;
  position: relative;
  overflow: hidden;
}

/* progress */
.swiper-pagination-bullet::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--colorProgress);
  transform: scaleX(0);
  transform-origin: left;
}

/* active animation */
.swiper-pagination-bullet-active::after {
  animation: line-filling var(--duration-filling) linear forwards;
}

/* animation */
@keyframes line-filling {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.swiper_content {
  width: 100%;
  padding: 1rem;
  min-height: 560px;
  position: relative;
  display: flex;
  justify-content: end;
  align-items: start;
  flex-direction: column;
  gap: 1rem;
}

.swiper_content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}
.swiper_content .swiper_content_title {
  position: relative;
  z-index: 100;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: start;
  text-transform: uppercase;
  width: 100%;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  max-width: 400px;
}
.swiper_header{ 
  position: absolute;
  top: 3rem;
  left: 0;
  right : 0;
  z-index: 100;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.625rem;
}
.swiper_header .swiper_header_item { 
  flex-grow: 1;
  font-weight: bold;
  color: white;
  font-size: 2rem;
}
.swiper_content a {
  position: relative;
  z-index: 100;
  padding : 10px 24px;
  font-size: 0.75rem;
  background: linear-gradient(to right, #128e8e, #128e8e62);
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(255, 165, 0, 0.15);
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  outline: none;
}
.swiper_content a:hover, .swiper_content a:focus {
  background: linear-gradient(to right, #128e8e, #128e8e62);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 12px #128e8e62;
  text-decoration: none;
}

.swiper_content .swiper_content_text {
  color: white;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 1rem;
  text-align: start;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  border: 1px solid white;
}