/* Article page: share bar + related news cards */
.article-actions {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  text-align: center;
}
.article-actions-spacer { display: none; }
.article-actions .article-source-cta {
  width: min(100%, 520px);
  max-width: 100%;
  flex: 0 1 auto;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  min-height: 3.25rem;
  padding: 0.55rem 1.1rem;
  margin-inline: auto;
}
.article-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  width: 100%;
}
.article-share-label {
  font-weight: 800;
  font-size: 1rem;
  color: #0f172a;
}
.article-share-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.share-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  transition: transform 0.15s ease, filter 0.15s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}
.share-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  color: #fff !important;
}
.share-facebook { background: #1877f2; }
.share-x { background: #111827; }
.share-whatsapp { background: #25d366; }

/* Related news grid */
.related-news {
  margin: 2rem 0 1rem;
}
.related-news > h2 {
  margin: 0 0 1.1rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
}
.related-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}
.related-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.related-card:hover {
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}
.related-media {
  display: block;
  position: relative;
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  overflow: hidden;
  text-decoration: none;
}
.related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.related-badge {
  position: absolute;
  top: 0.65rem;
  inset-inline-start: 0.65rem;
  z-index: 2;
  background: #c8102e;
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.42rem 0.6rem;
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
  text-decoration: none;
}
.related-meta {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem 0.15rem;
  min-height: 2.4rem;
}
.related-share-mini {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.35rem;
}
.related-share-mini .share-btn {
  width: 1.65rem;
  height: 1.65rem;
  font-size: 0.72rem;
  box-shadow: none;
}
.related-date {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
}
.related-title {
  margin: 0;
  padding: 0.4rem 0.85rem 0.95rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
  flex: 1;
}
.related-title a {
  color: #0f172a !important;
  text-decoration: none !important;
  border: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-title a:hover {
  color: #0b3d91 !important;
}

html[data-theme="dark"] .related-card {
  background: #111827;
  border-color: #243244;
}
html[data-theme="dark"] .related-news > h2,
html[data-theme="dark"] .related-title a,
html[data-theme="dark"] .article-share-label {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .article-actions {
  border-top-color: #243244;
}

@media (max-width: 1024px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-media { height: 150px; }
}

@media (max-width: 720px) {
  .article-actions {
    gap: 0.95rem;
    padding-inline: 0.15rem;
  }
  .article-actions .article-source-cta {
    width: 100%;
    max-width: 100%;
    font-size: 0.98rem;
  }
  .article-share {
    flex-direction: column;
    gap: 0.55rem;
  }
  .related-grid { grid-template-columns: 1fr; }
  .related-media { height: 180px; }
}
