.leadership-section {
  margin: 50px 0;

  @media screen and (max-width: 669px) {
    margin: 30px 0;
  }

  .leadership-title {
    font-size: 40px;
    line-height: 50px;
    font-weight: 700;
    color: #222222;
    text-align: center;
    text-transform: uppercase;

    strong {
      color: #6800FF;
    }

    @media screen and (max-width: 1580px) {
      font-size: 25px;
      line-height: 30px;
    }

    @media screen and (max-width: 960px) {
      font-size: 20px;
      line-height: 24px;
    }

    @media screen and (max-width: 669px) {
      font-size: 16px;
      line-height: 19.5px;
      text-align: left;
    }
  }

  .filters {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 50px 0;

    @media screen and (max-width: 669px) {
      gap: 10px;
      margin: 30px 0;
    }

    span {
      font-size: 22px;
      line-height: 26.82px;
      font-weight: 400;

      @media screen and (max-width: 1580px) {
        font-size: 18px;
        line-height: 20px;
      }

      @media screen and (max-width: 960px) {
        font-size: 16px;
        line-height: 18px;
      }

      @media screen and (max-width: 669px) {
        font-size: 12px;
        line-height: 14.63px;
      }
    }

    .filter-tags {
      display: flex;
      gap: 10px;

      .filter-btn {
        border-radius: 16px;
        padding: 5px 15px;
        font-size: 22px;
        line-height: 26.82px;
        font-weight: 400;
        color: #6800FF;
        background: transparent;
        border: 1px solid #6800FF;

        @media screen and (max-width: 1580px) {
          font-size: 18px;
          line-height: 20px;
        }

        @media screen and (max-width: 960px) {
          font-size: 14px;
          line-height: 16px;
        }

        @media screen and (max-width: 669px) {
          font-size: 10px;
          line-height: 12.19px;
          padding: 5px 10px;
        }
      }
      .filter-btn.active {
        font-weight: 700;
        color: #FFFFFA;
        background: #6800FF;
      }
    }
  }

  .card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;

    @media screen and (max-width: 1399px) {
      grid-template-columns: repeat(3, 1fr);
    }

    @media screen and (max-width: 991px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media screen and (max-width: 669px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media screen and (max-width: 425px) {
      grid-template-columns: repeat(1, 1fr);
    }
  }
}

.leadership-section::before {
  content: "";
  position: absolute;
  top: -50px; /* Desloca o plano de fundo para cima */
  left: 0;
  right: 0;
  height: calc(100% + 50px); /* Ajusta a altura para compensar */
  background-image: url('../assets/top-leadership-gradient-bg.svg');
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1; /* Mantém o fundo atrás do conteúdo */
}

.leader-card {
  width: 100%;
  height: 550px;

  @media screen and (max-width: 669px) {
    height: 350px;
  }

  @media screen and (max-width: 569px) {
    height: 300px;
  }

  @media screen and (max-width: 425px) {
    max-width: 370px;
    height: 200px;
  }

  .flip-card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;

    .flip-card-back {
      transform: rotateY(180deg);
    }

    .flip-card-front,
    .flip-card-back {
      width: 100%;
      height: 100%;
      position: absolute;
      backface-visibility: hidden;
      overflow: hidden;
      border-radius: 16px;
      padding: 20px;
    }

    .flip-card-front {
      display: flex;
      align-items: flex-end;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      transition: background 0.3s ease-in-out; /* Suaviza a transição */
    }

    .flip-card-front::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.65) 90%);
      opacity: 1;
      z-index: 1;
    }

    .flip-card-front:hover::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(180deg, rgba(104, 0, 255, 0) 50%, rgba(104, 0, 255, 0.65) 90%);
      opacity: 0; /* Início sem sobreposição */
      transition: opacity 0.3s ease-in-out; /* Suaviza a transição */
      opacity: 1; /* Exibe o gradiente no hover */
      z-index: 2;
    }

    .flip-card-front.desaturated {
      filter: grayscale(100%);
    }

    .flip-card-front.desaturated:hover {
      filter: grayscale(0%);
    }

    .flip-card-back {
      background-color: #6800FF;
      transform: rotateY(180deg);

      hr {
        color: #FFFFFF;
        opacity: 50%;

        @media screen and (max-width: 669px) {
          margin: 0.5rem 0;
        }
      }
    }

    .leader-info {
      z-index: 5;
      margin-bottom: 10px;

      @media screen and (max-width: 1580px) {
        margin-bottom: 0;
      }

      .leader-name {
        font-size: 32px;
        line-height: 28px;
        font-weight: 600;
        color: #FFFFFF;
        margin-bottom: 15px;

        @media screen and (max-width: 1580px) {
          font-size: 25px;
          line-height: 30px;
          margin-bottom: 0;
        }

        @media screen and (max-width: 960px) {
          font-size: 20px;
          line-height: 25px;
        }

        @media screen and (max-width: 669px) {
          font-size: 16px;
          line-height: 19.5px;
        }
      }

      .leader-position {
        font-size: 24px;
        line-height: 28px;
        font-weight: 400;
        color: #FFFFFF;
        margin: -10px 0;

        @media screen and (max-width: 1580px) {
          font-size: 20px;
          line-height: 25px;
          margin: 0;
        }

        @media screen and (max-width: 960px) {
          font-size: 16px;
          line-height: 20px;
        }

        @media screen and (max-width: 669px) {
          font-size: 12px;
          line-height: 14.63px;
        }
      }
    }

    .leader-description {
      font-size: 16px;
      line-height: 24px;
      font-weight: 500;
      color: #FFFFFF;
      margin-bottom: 0;

      @media screen and (max-width: 960px) {
        font-size: 14px;
        line-height: 18px;
      }

      @media screen and (max-width: 669px) {
        font-size: 12px;
        line-height: 14.63px;
      }
    }
  }

  .flip-card-inner.flipped {
    transform: rotateY(180deg);
  }
}

/* Skeleton Loader */
.skeleton-wrapper {
  display: flex;
  gap: 16px;
  margin: 16px 0;
}

.skeleton-card {
  width: 100%;
  height: 550px;
  background: linear-gradient(to right, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;

  @media screen and (max-width: 669px) {
    height: 350px;
  }

  @media screen and (max-width: 569px) {
    height: 300px;
  }

  @media screen and (max-width: 425px) {
    max-width: 370px;
    height: 200px;
  }
}

.skeleton-title {
  width: 80%;
  height: 28px;
  background-color: #e0e0e0;
  border-radius: 16px;

  @media screen and (max-width: 669px) {
    height: 16px;
  }
}

.skeleton-description {
  width: 60%;
  height: 19px;
  background-color: #e0e0e0;
  border-radius: 16px;

  @media screen and (max-width: 669px) {
    height: 11px;
  }
}

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
