.card {
  width: 90%;
  padding: 10px;
  max-width: 450px;
  margin: auto;
  margin-bottom: 50px;
  /* position: relative; */
  overflow: hidden;
  border-radius: 20px;
  transform-style: preserve-3d;
  background: linear-gradient(to right, #0082b6, #007767);
  transition: transform 100ms linear;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  transition: left 0.3s ease;
}

.card:hover::before {
  left: 100%;
}

.avatar-section {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 30px;
}
.avatar-section img {
  width: 50px;
  height: 50px;
  border-radius: 100%;
}
.avatar-section h3 {
  color: white;
  font-size: 16px;
}
.avatar-section p {
  color: rgb(221, 221, 221);
  font-size: 16px;
}

.card .main-image {
  max-width: 100%;
  margin: auto;
  display: block;
  max-height: 250px;
  border-radius: 15px;
}

.card .card-details {
  margin: 10px;
}
.card .card-details h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: #fff;
}
.card .card-details p {
  font-size: 16px;
  color: rgb(221, 221, 221);
}

/* bottom Section */
.bottomSection {
  margin-top: 30px;
  padding: 6px;
  display: flex;
  justify-content: space-between;
}

.iconSection {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 13px;
  color: #fff;
}
.iconSection svg {
  width: 20px;
}

.iconSection.comment:hover {
  transition: 0.3s;
  color: #64b4ff;
}
.iconSection.repost:hover {
  transition: 0.3s;
  color: rgb(103, 255, 103);
}
.iconSection.like:hover {
  transition: 0.3s;
  color: #ff7da8;
}
.iconSection.view:hover,
.iconSection.share:hover {
  transition: 0.3s;
  color: #64b4ff;
}
