.cards {
  margin-top: 250px;
  margin-bottom: 100px;

  &::before {
    content: "";
    position: absolute;

    background: linear-gradient(0deg, #000 0.01%, rgba(0, 0, 0, 0) 41.92%),
      url(../assets/images/coache-team/coach-team-bg.jpg),
      lightgray 0px -250.242px / 100% 124.334% no-repeat;
    background-position: top;
    background-repeat: no-repeat;

    opacity: 0.1;
    top: -15%;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;
  }

  @media (max-width: 1270px) {
    margin-top: 150px;
  }
}

.cards__wrapper > .container {
  text-align: center;
  margin-top: 100px;
}

.cards__wrapper > .container > h4 {
  font-size: 12px;
  text-transform: uppercase;
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  letter-spacing: 1rem;
  color: var(--color-red);
}

.cards__wrapper > .container > h1 {
  margin-top: 10px;
  font-size: 42px;
  text-transform: uppercase;
  line-height: 130%;
}

.cards__wrapper > .container > p {
  line-height: 180%;
  margin-top: 60px;
}

.cards__list {
  margin-top: 60px;
}

.cards__list {
  display: flex;
  justify-content: center;
  align-items: center;

  margin-top: 250px;

  gap: 60px;
  color: var(--color-black);

  @media (max-width: 1480px) {
    flex-direction: column;
    gap: 220px;
  }
}

.cards__list > li {
  position: relative;
}

.cards__list-top {
  display: flex;
  flex-direction: column;
  position: absolute;

  right: -7%;
  top: -50%;
  width: 345px;

  gap: 40px;
  padding: 30px;

  background: linear-gradient(303deg, #c0c0c0 0%, #fcfcfc 100%);
  box-shadow: 1px 2px 10px 0px rgba(0, 0, 0, 0.3);
  z-index: 9;

  border-radius: var(--border-radius-lg);

  /* transition: all 0.2s ease; */
  cursor: pointer;

  &:hover {
    background: var(--color-red);
    color: var(--color-white);
  }

  @media (max-width: 375px) {
    width: 300px;
    right: -3%;
  }
}

.cards__list > li:nth-child(2) > .cards__list-top {
  background: linear-gradient(300deg, #ed9d00 0%, #fdc454 100%);

  &:hover {
    background: var(--color-red);
    color: var(--color-white);
  }
}

.cards__list > li:nth-child(3) > .cards__list-top {
  background: var(--color-black);
  color: var(--color-white);

  &:hover {
    background: var(--color-red);
    color: var(--color-white);
  }
}

.cards__list > li:nth-child(4) > .cards__list-top {
  background: var(--color-white);

  &:hover {
    background: var(--color-red);
    color: var(--color-white);
  }
}

.cards__list-top > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cards__list-top > div p {
  white-space: nowrap;
}

.cards__list-top > div span {
  position: relative;
  width: 100%;
  height: 100%;

  &::before {
    content: "";
    position: absolute;

    width: 90%;
    left: 5%;
    margin-top: 5px;
    height: 1px;

    border-bottom: 1px dashed var(--color-dark);

    opacity: 0.3;
  }
}

.cards__list > li:nth-child(3) > .cards__list-top > div span {
  &::before {
    border-bottom: 1px dashed var(--color-white);
  }
}

.cards__list-top > div > a {
  padding: 15px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.cards__list > li:nth-child(4) > .cards__list-top > div > a {
  background: rgba(38, 41, 43, 0.12);
}

.cards__list-checklist {
  padding: 30px;
  width: 305px;
  background: var(--color-white);
  border-radius: var(--border-radius-lg);

  @media (max-width: 375px) {
    padding: 20px;
    width: 280px;
  }
}

.cards__list-checklist > ul > li {
  padding: 30px 0;
  display: flex;
  align-items: center;
}

.cards__list-checklist > ul > li > p {
  margin-left: 10px;
}

/* EVENTS */
.cards__events-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.cards__events-list > li {
  display: flex;
  align-items: center;

  @media (max-width: 1460px) {
    flex-direction: column;
  }
}

.cards__events-list > li .cards__events-list--text {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-left: 40px;

  @media (max-width: 1460px) {
    justify-content: center;
    align-items: center;
    text-align: center;

    margin-left: 0;
  }
}

@media (max-width: 1460px) {
  .cards__events-list > li {
    img {
      order: 0;
    }

    div {
      order: 1;
    }
  }
}

.cards__events-list > li > img {
  width: 700px;
  height: 466px;

  object-fit: cover;

  border-radius: 33px;

  @media (max-width: 768px) {
    width: 100%;
    height: 100%;
  }
}

.cards__events-list--text {
  h5 {
    font-size: 22px;
    color: var(--color-red);
    font-weight: 500;
    font-family: "Raleway";
  }

  h1 {
    font-size: 42px;
  }
}

.cards__events > .container > h4 {
  text-align: center;
  margin-top: 100px;
  font-size: 22px;
  color: var(--color-red);
  font-weight: 500;
  font-family: "Raleway";
}

.cards__events > .container > h1 {
  text-align: center;
  margin-bottom: 100px;
  font-size: 42px;
}

.cards__events ul > li a {
  width: 267px;
  padding: 25px 50px;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--color-white);
  border-radius: var(--border-radius-sm);
  background: var(--color-red);

  transition: all 0.2s ease;

  &:hover {
    background: var(--color-red-opacity);
  }

  &:focus {
    background: none;
    border: 1px solid var(--color-red);
  }

  @media (max-width: 320px) {
    padding: 20px 40px;
  }
}

.card__details {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;
  backdrop-filter: blur(4px);
  z-index: 9;
  opacity: 0;
  transition: all 0.2s ease;
}

.card__details.show {
  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 1;
}

.card__details-wrapper {
  display: flex;
  flex-direction: column;

  gap: 30px;
  padding: 40px;
  width: 580px;

  border-radius: var(--border-radius-md);
  background: var(--color-white);
  color: var(--color-black);

  @media (max-width: 806px) {
    width: 390px;
  }
}

.card__details-details > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card__details-details > div > button {
  background: none;
}

.card__details-wrapper ul {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-left: 50px;
  margin-top: 30px;
}

.card__details-wrapper > .card__details-details > ul {
  position: relative;
  &::before {
    content: "";
    position: absolute;

    top: 10%;
    left: -5%;

    width: 1px;
    height: 124px;

    background: url("../assets/images/cards/line-1.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }
}

.card__details-wrapper > .card__details-include > ul {
  position: relative;
  &::before {
    content: "";
    position: absolute;

    top: 10%;
    left: -5%;

    width: 1px;
    height: 185px;

    background: url("../assets/images/cards/line-2.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }
}

.card__details-wrapper > .card__details-details > ul > li {
  position: relative;

  &::before {
    content: "";
    position: absolute;

    top: 0%;
    left: -8%;

    width: 30px;
    height: 30px;

    background: url("../assets/icons/dot.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }
}

.card__details-wrapper > .card__details-include > ul > li {
  position: relative;

  &::before {
    content: "";
    position: absolute;

    top: 0%;
    left: -8%;

    width: 30px;
    height: 30px;

    background: url("../assets/icons/dot.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }
}

@media (max-width: 806px) {
  .card__details-wrapper > .card__details-include > ul > li::before {
    left: -11%;
  }

  .card__details-wrapper > .card__details-details > ul > li::before {
    left: -11%;
  }
}

.card__details-wrapper ul > li {
  line-height: 180%;
  color: var(--color-black);
}

.page__wrapper {
  z-index: 9;
}

.page__wrapper.clicked {
  z-index: 8;
}
