/* src/components/MyFeedSecion/MyFeed.css */

.feed-container {
  padding: 7vw 4vw;
  background-color: #f5f5f5;
  background: linear-gradient(90deg, #2c0727 0%, #110823 100%);
}

.feed-title {
  font-size: 4rem;
  margin-bottom: 20px;
  text-align: center;
  color: #fbfbfb;
  font-style: " Snell Roundhand, cursive";
}

.feed-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
  gap: 3vw; /* Space between cards */
  padding: 5% 5%;
}

.feed-item {
  background-color: #2222229d;
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  overflow: hidden;
  height: 20vw;
}

.feed-item:hover {
  transform: scale(1.05); /* Slightly scale up the card */
  box-shadow: 1px 0px 10px #5d1df1, -1px 0px 5px #73f2fb;
}

.feed-item h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #f5f5f5;
}

.feed-item p {
  font-size: 1.25rem;
  color: #73f2fb;
}

.feed-item div {
  width: 100%;
  height: 1.5px;
  background-color: #fff;
}

.feed-item img {
  width: 100%;
  height: 10vw;
  object-fit: cover;
}

.feed-date {
  font-size: 1rem;
  color: #f5f5f5;
  margin-top: 10px;
  display: block;
  text-align: right;
}

/* Responsive Design: Adjust layout for smaller screens */
@media (max-width: 1200px) {
  .feed-list {
    grid-template-columns: repeat(
      2,
      1fr
    ); /* 2 cards per row on medium screens */
  }
}

@media (max-width: 768px) {
  .feed-list {
    grid-template-columns: 1fr; /* 1 card per row on small screens */
  }
}
