body {
  font-family: "Poppins", sans-serif;
  background: #f8f9fb;
  margin: 0;
  padding: 0;
  color: #222;
}

header {
  text-align: center;
  background: #fff;
  padding: 30px 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

h1 {
  color: #f60;
  margin-bottom: 8px;
}

.subtitle {
  color: #666;
  font-size: 15px;
}

#feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 25px;
  padding: 25px;
  max-width: 1200px;
  margin: auto;
}

.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px) rotate3d(1, 1, 0, 3deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 15px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h2 {
  font-size: 18px;
  margin: 0 0 8px;
  color: #004aad;
  transition: color 0.3s;
}

.card:hover h2 {
  color: #f60;
}

.card p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.source {
  margin-top: 10px;
  font-size: 13px;
  color: #f60;
}

/* Social share buttons */
.share {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.share-btn {
  border: none;
  outline: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.share-btn.whatsapp { background-color: #25D366; }
.share-btn.linkedin { background-color: #0077b5; }
.share-btn.facebook { background-color: #1877f2; }
.share-btn.twitter  { background-color: #000; }

.share-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #888;
  background: #fff;
  margin-top: 30px;
}

/* Highlighted shared article */
.card.highlighted {
  border: 2px solid #f60;
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.5);
}

/* Pulse effect */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(255,102,0,0.4); }
  50% { box-shadow: 0 0 25px rgba(255,102,0,0.8); }
  100% { box-shadow: 0 0 10px rgba(255,102,0,0.4); }
}

.card.pulse {
  animation: pulseGlow 1.5s infinite;
}
