.trending-section {
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px 12px;
  width: 100%;
  max-width: 320px;
}

/* Trending title with red background */
.trending-title {
  background-color: rgb(218, 52, 55);
  color: #fff;
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  margin-bottom: 24px;
  padding: 6px 16px;
  position: relative;
  width: 100%;
  max-width: 350px;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}

/* Add red italic/striped line under title */
.trending-title::after {
  content: "";
  display: block;
  height: 5px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    #d92323,
    #d92323 8px,
    transparent 8px,
    transparent 16px
  );
  border-radius: 2px;
  position: absolute;
  bottom: -8px;
  left: 0;
}

.trending-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, background 0.2s ease;
  padding: 5px;
  border-radius: 6px;
}

.trending-card:hover {
  background: #f8f8f8;
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.trending-rank {
  color: rgb(196, 196, 196);
  display: flex;
  align-items: center;
  font-size: 30px;
  font-weight: 900;
  line-height: 36px;
  padding-right: 8px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  -webkit-font-smoothing: antialiased;
}

.trending-content {
  flex: 1;
}

.trending-content h3.trending-post-title {
  color: #000;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.26;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  margin: 3px 0;
  -webkit-font-smoothing: antialiased;
}

.category {
  color: rgb(218, 52, 55);
  display: inline;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  text-transform: uppercase;
  margin-bottom: 3px;
  -webkit-font-smoothing: antialiased;
}

/* View count styling */
.trending-views {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 12px;
  color: #666;
}

.trending-views i,
.trending-views .hitz360-eye-icon {
  font-size: 14px;
  color: #999;
}

.trending-views span {
  font-weight: 500;
  color: #333;
}

.trending-image {
  width: 80px;
  height: 60px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Category color coding */
.category.gossip { color: rgb(218, 52, 55); }
.category.music { color: rgb(218, 52, 55); }
.category.beef { color: rgb(218, 52, 55); }
.category.news { color: rgb(218, 52, 55); }
.category.general { color: rgb(218, 52, 55); }

/* Mobile responsiveness */
@media (max-width: 480px) {
  .trending-section {
    max-width: 100%;
    padding: 8px 12px 12px;
  }

  .trending-card {
    flex-direction: row;
    margin-top: 12px;
    gap: 8px;
  }

  .trending-image {
    width: 70px;
    height: 50px;
  }

  .trending-content h3.trending-post-title {
    font-size: 13px;
  }

  .trending-rank {
    font-size: 18px;
    width: 25px;
  }

  .category {
    font-size: 10px;
  }
  
  .trending-views {
    font-size: 11px;
  }
  
  .trending-views i,
  .trending-views .hitz360-eye-icon {
    font-size: 12px;
  }
}