.directors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px 25px;

  @media (max-width: 1200px) {
    grid-template-columns: repeat(3, 1fr);
  }

  @media (max-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }

  @media (max-width: 480px) {
    grid-template-columns: 1fr;
    gap: 30px 0;
  }

  [dir="rtl"] & {
    direction: rtl;
  }
}

@keyframes expandBorderBottom {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.director-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-bottom: 15px;
  position: relative;
  cursor: pointer;

  &::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    background-color: var(--secondary-color);
    width: 0;
    transition: width 0.5s ease-in-out;
  }

  &:hover {
    &::after {
      width: 100%;
    }

    .director-photo-wrapper img {
      transition: all 0.5s ease-in-out;
      scale: 1.1;
    }
  }

  .director-photo-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    background-color: #C4C4C4;
    overflow: hidden;

    .director-photo {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  }

  .director-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: center;

    [dir="rtl"] & {
      text-align: center;
    }

    .director-name {
      font-family: var(--font-type1);
      font-size: 20px;
      font-weight: 700;
      line-height: 28px;
      color: var(--black);
      margin: 0;

      @media (max-width: 768px) {
        font-size: 17px;
        line-height: 24px;
      }
    }

    .director-role-badge {
      display: flex;
      padding: 3px 12px;
      justify-content: center;
      align-items: center;
      border-radius: 50px;
      background: rgba(152, 178, 16, 0.1);
      color: var(--secondary-color);
      font-size: 12px;
      font-weight: 500;
      line-height: 16px;
      letter-spacing: 0.48px;
      text-transform: uppercase;
    }
  }
}
