/* ===== CMS news (organizationalEvents.html + newsDetail.html) ===== */
/* newsDetail.html par blogCms.css ke BAAD load karo (blog-body, blog-detail-*, blog-slider-* wahin se aate hain) */

/* ---- Listing ---- */
.news-title {
  color: var(--bs-dark);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.news-title:hover {
  color: var(--bs-primary);
}

.news-meta {
  color: #6c757d;
  font-size: 0.875rem;
}

.news-summary {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-state {
  padding: 40px 15px;
}

.news-pagination .page-link {
  color: var(--bs-primary);
  cursor: pointer;
}

.news-pagination .page-item.active .page-link {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

.news-pagination .page-item.disabled .page-link {
  color: #adb5bd;
  cursor: default;
}

/* ---- Infinite scroll footer (loader / retry / end message) ---- */
.news-more {
  min-height: 1px;
}

.news-more-state {
  padding: 20px 15px;
  color: #6c757d;
}

/* "You're all caught up" - green pill with fading lines */
.news-end {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 15px;
}

.news-end-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #198754);
}

.news-end-line:last-child {
  background: linear-gradient(90deg, #198754, transparent);
}

.news-end-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: #e9f7ef;
  color: #198754;
  border: 1px solid rgba(25, 135, 84, 0.3);
  box-shadow: 0 4px 14px rgba(25, 135, 84, 0.15);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  animation: newsEndIn 0.6s ease both;
}

.news-end-pill i {
  font-size: 1.1rem;
}

@keyframes newsEndIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-end-pill {
    animation: none;
  }
}

@media (max-width: 575px) {
  .news-end {
    gap: 10px;
  }
  .news-end-pill {
    padding: 7px 14px;
    font-size: 0.85rem;
  }
}

/* ---- Detail ---- */
/* Image slider ke styles blogCms.css (.blog-slider-*) se aate hain */
.news-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--bs-primary);
  border-radius: 50%;
  background: transparent;
  color: var(--bs-primary);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.news-share-btn:hover {
  background: var(--bs-primary);
  color: #fff;
}