/* carousel */
.slider2 {
  display: flex;
  list-style: none;
  margin-block-start: var(--size-600);
}

.slider {
  display: flex;
  list-style: none;
  gap: var(--size-600);
}

.slider2 li {
  position: relative;
  display: flex;
  align-items: center;
  padding-inline: calc((100vw - 1230px)/2);
}

.slider2 li img {
  width: clamp(250px, 50vw, 500px);
  max-height: 600px;
}

.slider>*,
.slider2>* {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  text-align: center;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.83);
}

@media(min-width: 30em) {
  .slider>* {
    width: 300px;
  }
}


.slider-content {
  height: 400px;
  background: rgba(0, 0, 0, 0.164);
  padding: var(--size-700) var(--size-400);
  border-width: 4px 1px 1px;
  border-style: solid;
  border-image: linear-gradient(180deg,
      rgba(255, 204, 0, 1), rgba(39, 221, 192, 1));
  ;
  backdrop-filter: blur(75px);
  border-image-slice: 1;
  overflow-y: scroll;
  margin-bottom: 2rem;
}

.slider img {
  width: var(--size-800);
  position: relative;
  inset: 0;
  margin-inline: auto;
  top: calc(var(--size-800) / 2);
  z-index: 10;
}

.slider h3 {
  margin-top: 1.7rem;
}
.a11y-slider-autoplay {
  display: none;
}

.a11y-slider-container {
  top: -70px;
}

.a11y-slider {
  margin-block: var(--size-900);
}

.a11y-slider-dots {
  display: flex;
  justify-content: center;
}

#meet-coaches .a11y-slider-dots {
  margin-top: -40px;
}

@media(min-width: 30em) {
  .a11y-slider-dots {
    gap: var(--size-300);
  }

}

.a11y-slider-dots li {
  display: block;
  width: 12px;
  height: 12px;
  padding: 0;
  margin: 0 5px;
  color: #fff;
}

.a11y-slider-dots li button {
  display: block;
  font-size: 0;
  text-indent: -9999px;
  border: 1px solid var(--clr-accent-400) !important;
  background: transparent;
  width: 100%;
  height: 100%;
  border-radius: 100%;
}

.a11y-slider-dots li button.active {
  background: var(--clr-accent-400);
}

.a11y-slider-prev,
.a11y-slider-next {
  font-size: 0;
  background-color: transparent;
  border: none;
}

.a11y-slider-prev::before,
.a11y-slider-next::before {
  content: "";
  position: absolute;
  bottom: 35px;
  display: inline-block;
  width: 40px;
  height: 40px;
  background-size: cover;
  cursor: pointer;
  transition: background-image 0.3s ease
}

.a11y-slider-prev::before {
  left: 46%;
  transform: translateX(-50%);
  background-image: url("/resources/arrow-prev.svg");
}

.a11y-slider-next::before {
  right: 46%;
  transform: translateX(50%);
  background-image: url("/resources/arrow-next.svg");
}

.a11y-slider-prev:hover::before {
  background-image: url("/resources/arrow-prev-hover.svg");
}

.a11y-slider-next:hover::before {
  background-image: url("/resources/arrow-next-hover.svg");
}


@media(prefers-reduced-motion) {

  .hide-down,
  .hide-left,
  .hide-right {
    transition: none;
  }
}

/* hero section*/
p.hero-subtitle,
h1,
.hero-img,
.hero-btns {
  opacity: 0;
  animation: reveal 1.2s forwards 0s;
}

@keyframes reveal {
  from {
    transform: translateY(70px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 150%;
  background-image: url("/resources/hero-banner.svg");
  background-position: top right;
  background-repeat: no-repeat;
  background-size: 700px;
  z-index: -2;
}

.hero-btns button {
  margin-left: 10px;
  margin-top: var(--size-300);
}

.hero-btns {
  margin-top: 30px;
}

@media (max-width: 400px) {
  .hero-btns button {
    letter-spacing: normal;
    padding: .6em;
  }

  .hero-btns .button-primary:hover {
    padding: .6em;
    letter-spacing: normal;
  }
}

.gradient-font {
  color: rgb(31, 51, 63);
  background: linear-gradient(to right,
      rgba(249, 248, 113, 0.7),
      rgba(0, 104, 191, 1));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0.125em transparent;
  letter-spacing: 0.12em;
}

.features {
  display: flex;
  margin-block-start: var(--size-700);

}

.item {
  width: 30%;
  flex: 1;
  margin-inline: 15px;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 20px;
  align-items: center;
  padding: 30px 15px;
  background-color: rgb(0, 44, 75, 0.86);
  line-height: 1.4rem;
  box-shadow: 1px 4px 20px 2px rgba(0, 0, 0, 0.208);
  border-radius: 5px;
}

@media(min-width: 67em) {
  .item {
    flex-direction: row;
    text-align: left;
    padding: 20px;
  }
}

@media(max-width: 30em) {

  .item {
    width: 85%;
    min-height: 250px;
    --flow-spacer: .2rem;
  }

  .features {
    flex-direction: column;
    align-items: center;
    gap: var(--size-600);
  }
}

@media(max-width: 50em) {
  #hero::before {
    height: 140%;
    background-size: clamp(300px, 100vw, 66vh);
  }

  #hero .even-columns {
    grid-template-columns: 1fr !important;
  }

  #hero .even-columns img {
    order: -1;
    margin: auto;
    width: clamp(500px, 60vw, 700px);
  }

  #hero .flow {
    text-align: center;
  }

  .item {
    min-width: 280px;
    height: 210px;
    margin: 0;
  }

  .features {
    flex-wrap: wrap;
    gap: var(--size-500);
  }

}

.item p:nth-of-type(2) {
  margin-top: 6px;
}

/* Services section */
#services {
  margin-block-end: 40px;
}


#services .container {
  display: grid;
  gap: var(--size-900);
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-columns: 1fr;
}


.service-img-wrapper {
  height: 360px;
}

#services img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  border-radius: 15px;
}


.description {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: left;
}


.description button {
  position: relative;
  margin: auto;
  padding: 12px 18px;
  transition: all 0.2s ease;
  border: none;
  background: none;
  cursor: pointer;
}

.description button:before {
  content: "";
  position: absolute;
  left: 0;
  display: block;
  border-radius: 50px;
  background: var(--clr-primary-300);
  width: 45px;
  height: 45px;
  transition: all 0.3s ease;
}

.description button span {
  position: relative;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.description button svg {
  position: relative;
  top: 0;
  margin-left: 10px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: var(--clr-primary-400);
  stroke-width: 2;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.description button:hover:before {
  width: 100%;
  background: linear-gradient(to right,
      var(--clr-primary-400),
      var(--clr-accent-400));
}

.description button:hover svg {
  transform: translateX(0);
}

.description button:active {
  transform: scale(0.95);
}

@media(max-width: 50em) {
  #services .container {
    gap: var(--size-700);
  }

  #services .even-columns {
    gap: var(--size-500);
  }

  #services .even-columns:nth-child(2) .description {
    order: 1;
  }
}

/* about us */

#about-us {
  position: relative;
  background-image: linear-gradient(270deg,
      #098699 11.25%,
      rgba(0, 163, 184, 0.75) 18.02%,
      #025193 66.46%);
  background-size: cover;
  background-position: 100% 100%;
  background-repeat: no-repeat;

  height: 100%;
}


.abt-us-text {
  text-align: center;
  line-height: var(--size-600);
  margin-inline: auto;
}

.abt-us-text p:nth-child(2) {
  text-transform: uppercase;
  margin-block: 2rem 1rem;
  color: var(--clr-accent-300);
  font-style: italic;
}

#about-us img {
  width: 400px;
  margin-inline: auto;
}

#about-us button {
  display: block;
  margin: var(--size-800) auto;
}

@media (max-width: 30em) {
  #about-us img {
    width: 325px;
  }
}

/* testimonials */

#testimonials {
  background-image: url("/resources/glow-bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

#testimonials h3 {
  text-align: center;
  text-transform: capitalize;
}

#testimonials button.button-primary {
  display: block;
  margin: 0 auto;
}

@media(max-width: 50em) {
  #testimonials {
    background-size: cover;
  }
}

/* meet coaches */
.slider2 li {
  position: relative;
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100% 83%;
  background-repeat: no-repeat;
  padding: var(--size-500);
  height: 655px;
  background-size: cover;
}

.slider2>li:nth-child(odd) {
  text-align: right;
}

.slider2>li:nth-child(even) {
  text-align: left;
}

.slider2>li:nth-child(even)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.00) 2.75%, rgba(0, 0, 0, 0.57) 42.16%, #000 100%);
  pointer-events: none;
}

.slider2>li:nth-child(odd)::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.00) 2.75%, rgba(0, 0, 0, 0.57) 42.16%, #000 100%);
  pointer-events: none;
}

.blue-bg {
  background-image: url("/resources/bg-blue.png");
}

.yellow-bg {
  background-image: url("/resources/bg-yellow.png");
}

.green-bg {
  background-image: url("/resources/bg-green.png");
}

.coach-info {
  z-index: 2;
}

.coach-name {
  -webkit-text-fill-color: transparent;
  font-size: max(37px, 6vw);
  font-family: 'Roboto' sans-serif;
  font-weight: var(--fw-semi-bold);
  line-height: 4rem;
  margin-bottom: 1.5rem;
}


@media (max-width: 50em) {
  .slider2 li {
    gap: var(--size-600);
    height: auto;
    justify-content: center;
  }

  .slider2>li:nth-child(odd) {
    flex-direction: column;
  }

  .slider2>li:nth-child(even) {
    flex-direction: column-reverse;

  }

  .slider2>li:nth-child(odd)::before,
  .slider2>li:nth-child(even)::before {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 2.75%, rgba(0, 0, 0, 0.57) 42.16%, #000 100%);
  }

  .coach-info {
    text-align: center;
  }

  .coach-name {
    -webkit-text-stroke-width: 2px !important;
    line-height: 3rem;
  }

  .coach-bio {
    font-size: 14px;
  }
}

/* taekwondo instructors */
.box .instructor {
  display: flex;
  gap: 4rem;
  margin-bottom: 3rem;
  align-items: center;
}

.instructor-bio {
  position: relative;
}

.instructor-bio::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 200px;
  background-size: 62px 62px;
  background-position: 0 0, 31px 31px;
  background-color: rgba(73, 214, 30, 0);
}

.instructor:nth-child(1) .instructor-bio::before {
  background-image: radial-gradient(#93f68154 2px, transparent 2px),
    radial-gradient(#99ffc5a1 2px, transparent 2px);
}

.instructor:nth-child(2) .instructor-bio::before {
  background-image: radial-gradient(#fdff9954 2px, transparent 2px),
    radial-gradient(#fdff99a1 2px, transparent 2px);
}

.instructor:nth-child(3) .instructor-bio::before {
  background-image: radial-gradient(#99f5ff54 2px, transparent 2px),
    radial-gradient(#5dcbf4a1 2px, transparent 2px);
}

.instructor img {
  width: 40%;
}

.instructor .coach-name {
  line-height: 120%;
  font-size: 3.5rem;
}

@media (max-width: 768px) {

  .box .instructor {
    flex-direction: column;
    text-align: center;
    margin-bottom: 4.8rem;
  }

  .instructor img {
    width: 80%;
  }

  .box .instructor:nth-child(2) {
    flex-direction: column-reverse;
  }
}

/* contact us */

#google-map iframe {
  height: 100%;
  width: 100%;
  border-radius: 5px;
}

#google-map {
  flex-basis: 50%;
}

#contact-us h3 {
  text-align: center;
  margin-block-end: var(--size-600);
  text-transform: capitalize;
}

.form-container {
  --border-height: 1px;
  --border-before-color: rgba(221, 221, 221, 0.599);
  --input-hovered-color: #49e0bd14;
  flex-basis: 50%;
}

.input-wrapper {
  position: relative;
}

.form-container input,
.form-container textarea {
  width: 100%;
  margin-bottom: 10px;
  color: var(--clr-neutral-400);
  font-size: 0.9rem;
  background-color: transparent;
  width: 100%;
  box-sizing: border-box;
  padding-inline: 0.5em;
  padding-block: 0.7em;
  border: none;
  border-bottom: var(--border-height) solid var(--border-before-color);
}

.input-border {
  position: absolute;
  background: var(--clr-primary-200);
  width: 0%;
  height: 2px;
  bottom: 10px;
  left: 0;
  transition: 0.3s;
}

.form-container textarea:hover,
.form-container input:hover {
  background: var(--input-hovered-color);
}

.form-container textarea {
  height: 350px;
  outline: none;
}

.form-container textarea:focus,
.form-container input:focus {
  outline: none;
}

.form-container input:focus~.input-border,
.form-container textarea:focus~.input-border {
  width: 100%;
}

.button-tertiary {
  height: min-content;
  padding: 12px 24px;
  border: 1px solid var(--clr-primary-200);
  border-radius: 4px;
  transition: all 0.2s ease-in;
  position: relative;
  overflow: hidden;
  color: var(--clr-neutral-400);
  background-color: transparent;
  cursor: pointer;
}


.button-tertiary:before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scaleY(1) scaleX(1.25);
  top: 100%;
  width: 140%;
  height: 180%;
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}

.button-tertiary:after {
  content: "";
  position: absolute;
  left: 55%;
  transform: translateX(-50%) scaleY(1) scaleX(1.45);
  top: 180%;
  width: 160%;
  height: 190%;
  background-color: var(--clr-primary-200);
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}

.button-tertiary:hover {
  color: var(--clr-primary-600);
  border: 1px solid var(--clr-primary-200);
}

.button-tertiary:hover:before {
  top: -35%;
  background-color: var(--clr-primary-200);
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.button-tertiary:hover:after {
  top: -45%;
  background-color: var(--clr-primary-200);
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}



.info-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.contact-wrapper {
  display: flex;
  gap: var(--size-600);
}

.contact-info div {
  display: flex;
  gap: var(--size-200);
}


@media (max-width: 67em) {
  .contact-wrapper {
    flex-direction: column-reverse;
  }

  #google-map iframe {
    height: 400px;
  }
}

@media (max-width: 510px) {
  .info-wrapper {
    flex-direction: column;
    align-items: start;
    gap: var(--size-600);
  }
}