/* ════════════════════════════════════════════
   APS Partners — News / Insights Cards
   Used on: news.html (sections) + index.html (preview)
   ════════════════════════════════════════════ */

/* ── Shared grid ── */
.nc-grid,
#homeNewsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .nc-grid, #homeNewsGrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .nc-grid, #homeNewsGrid { grid-template-columns: 1fr; }
}

/* ── Note Card (nc) ── */
.nc {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.22s, transform 0.18s, border-color 0.18s;
}
.nc:hover {
  box-shadow: 0 8px 32px rgba(0,115,131,0.11);
  transform: translateY(-4px);
  border-color: rgba(0,115,131,0.28);
}

/* ── Thumbnail — 16:9 with overflow for zoom ── */
.nc__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--teal-light);
  flex-shrink: 0;
  display: block;
}
.nc__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.38s ease;
}
.nc:hover .nc__img img { transform: scale(1.05); }

.nc__img--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #D8F2F5 0%, #b8e6ee 100%);
  color: var(--teal);
}

/* ── Body: tag + title + excerpt  (no footer) ── */
.nc__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 22px;
  flex: 1;
}

/* ── Category tag ── */
.nc__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--teal-light);
  color: var(--teal);
  letter-spacing: 0.04em;
  align-self: flex-start;
}

/* ── Title ── */
.nc__title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-primary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Excerpt ── */
.nc__excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Skeleton shimmer ── */
.nc--skel {
  min-height: 280px;
  background: var(--canvas);
  border: none;
  pointer-events: none;
  position: relative;
  overflow: hidden;
}
.nc--skel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.65) 50%,
    transparent 100%
  );
  animation: nc-shimmer 1.5s ease-in-out infinite;
}
@keyframes nc-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ── Card fade-in ── */
@keyframes nc-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nc--anim {
  animation: nc-fade-up 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ═══════════════════════════════
   NEWS PAGE — section layout
   ═══════════════════════════════ */

.news-section {
  padding: 50px 0 50px;
}

/* Section header with accent line */
.news-section-header {
  margin-bottom: 40px;
}
.news-section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.news-section-line {
  display: block;
  width: 4px;
  height: 28px;
  background: var(--teal);
  border-radius: 2px;
  flex-shrink: 0;
}
.news-section-label h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}
.news-section-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  padding-left: 18px; /* align with title */
}

/* Error / empty state */
.nc-error {
  padding: 40px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}
.nc-error a {
  color: var(--teal);
  text-decoration: none;
}
.nc-error a:hover { text-decoration: underline; }

/* ═══════════════════════════════
   HOME PAGE — preview grid
   ═══════════════════════════════ */
#homeNewsGrid .nc__body {
  padding: 14px 16px 18px;
  gap: 7px;
}
#homeNewsGrid .nc__title {
  font-size: 14px;
  -webkit-line-clamp: 2;
}
#homeNewsGrid .nc__img {
  aspect-ratio: 16 / 9;
}

/* ════ NEWS RELEASE TIMELINE ════ */
.news-section-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  padding-left: 18px;
  margin-top: 2px;
}

.news-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--border-md);
  margin-left: 140px;
  padding-left: 0;
}
@media (max-width: 640px) {
  .news-timeline { margin-left: 0; }
}

.news-timeline-item {
  display: grid;
  grid-template-columns: 140px 20px 1fr;
  align-items: center;
  gap: 0;
  padding: 24px 0;
  border-bottom: 0.5px solid var(--border);
  margin-left: -140px;
}
.news-timeline-item:last-child { border-bottom: none; }

.news-timeline-date {
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  padding-right: 20px;
  text-align: right;
  flex-shrink: 0;
}

.news-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--white);
  outline: 1px solid var(--teal);
  margin: 0 auto;
  flex-shrink: 0;
}

.news-timeline-title {
  font-size: 15px;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.6;
  padding-left: 24px;
  transition: color 0.15s;
}
.news-timeline-title:hover { color: var(--teal); }

@media (max-width: 640px) {
  .news-timeline-item {
    grid-template-columns: 20px 1fr;
    margin-left: 0;
  }
  .news-timeline-date {
    display: none;
  }
}

/* ── Home page news subsection headers ── */
.home-news-sub { margin-top: 0; }
.home-news-sub-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.home-news-sub-line {
  display: block;
  width: 4px;
  height: 22px;
  background: var(--teal);
  border-radius: 2px;
  flex-shrink: 0;
}
.home-news-sub-header h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}