/* Updated CSS for custom card widget */
.majestic-swift-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between; /* Distribute cards evenly */
}

.majestic-swift-card-list  .cards-wrapper {
  display: flex;
  flex: 1;
  flex-basis: calc(20% - 10px);
  background-color: #f9f9f9;
  padding: 20px;
  transition: background-color 0.3s, transform 0.3s;
  box-sizing: border-box;
  height: auto;
  margin: 10px;
  /* border-radius: 20px; */
  position: relative;
  overflow: hidden;
  box-shadow: 4px 13px 30px 1px rgb(108 108 108 / 20%);

}

.majestic-swift-card-list  .card-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  border-radius: 20px 0 0 20px;
  /* background-image: linear-gradient(147deg, #fe8a39 0%, #fd3838 74%); */
  transform: translateX(-100%);
  transition: transform 0.3s;
}

.majestic-swift-card-list  .cards-wrapper:hover .card-image {
  transform: translateX(0);
}

.majestic-swift-card-list  .card-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.majestic-swift-card-list  .card-details {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.majestic-swift-card-list  .card-details h2 {
  font-size: 18px;
  margin: 10px 0;
  text-align: center;
}

.majestic-swift-card-list  .card-details p {
  margin: 0;
}

.majestic-swift-card-list  .sub-description {
  font-style: italic;
  color: #888;
  margin-top: 5px;
  text-align: center;
}

.majestic-swift-card-list  .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 10px;
  transition: background-color 0.3s;
  text-align: center;
}

.majestic-swift-card-list  .btn:hover {
  background-color: #0056b3;
}
