/* ==========================================================================
   ZYAD News Page — Featured banner + timeline feed
   Scoped to .news-page only
   ========================================================================== */

.news-main {
  padding-bottom: 3rem;
}

/* --- Section labels --- */
.news-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-green-light);
  margin-bottom: 1.35rem;
}

/* --- Tag colors (news page) --- */
.news-page .news-tag {
  padding: 0.22rem 0.65rem;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.news-page .news-tag-update {
  background: rgba(74, 124, 89, 0.22);
  color: var(--accent-green-light);
  border-color: rgba(74, 124, 89, 0.35);
}

.news-page .news-tag-wipe {
  background: rgba(196, 92, 74, 0.2);
  color: #e07a6a;
  border-color: rgba(196, 92, 74, 0.35);
}

.news-page .news-tag-event {
  background: rgba(80, 140, 210, 0.18);
  color: #7eb8e8;
  border-color: rgba(107, 159, 212, 0.35);
}

.news-page .news-tag-hotfix {
  background: rgba(232, 168, 56, 0.18);
  color: var(--accent-orange);
  border-color: rgba(232, 168, 56, 0.35);
}

.news-page .news-tag-roadmap {
  background: rgba(220, 190, 60, 0.16);
  color: #e8c84a;
  border-color: rgba(220, 190, 60, 0.35);
}

.news-page .news-tag-website {
  background: rgba(140, 110, 200, 0.18);
  color: #b89ae8;
  border-color: rgba(140, 110, 200, 0.35);
}

.news-page .news-date {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* --- Featured banner --- */
.news-featured-section {
  padding: 1.25rem 0 2.5rem;
}

.news-featured {
  position: relative;
  margin-top: 0.35rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(74, 124, 89, 0.35);
  box-shadow:
    var(--shadow-md),
    0 0 48px rgba(74, 124, 89, 0.12);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.news-featured:hover {
  border-color: rgba(74, 124, 89, 0.55);
  box-shadow:
    var(--shadow-md),
    0 0 56px rgba(74, 124, 89, 0.18);
}

.news-featured-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(74, 124, 89, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(232, 168, 56, 0.08), transparent 50%),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 12px
    ),
    linear-gradient(160deg, var(--bg-card) 0%, #141a17 45%, var(--bg-secondary) 100%);
  pointer-events: none;
}

.news-featured-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 15, 14, 0.15) 0%, transparent 40%);
}

.news-featured-inner {
  position: relative;
  padding: 2.25rem 2rem 2rem;
  max-width: 720px;
}

.news-page .news-featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-bottom: 1.1rem;
}

.news-featured-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(232, 168, 56, 0.35);
  border-radius: 50px;
  background: rgba(232, 168, 56, 0.1);
}

.news-featured h2 {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.2;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.news-featured-summary {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
}

.news-featured-points {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.news-featured-points li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.news-featured-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(74, 124, 89, 0.6);
}

.news-featured-points strong {
  color: var(--text-primary);
}

.news-featured-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
  line-height: 1.55;
}

.news-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* --- Timeline feed --- */
.news-feed-section {
  padding: 0.5rem 0 1rem;
}

.news-feed-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.news-feed-header h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.news-feed-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.news-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 1.75rem;
}

.news-timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--accent-green) 0%,
    rgba(74, 124, 89, 0.35) 60%,
    transparent 100%
  );
  border-radius: 2px;
}

.news-timeline-item {
  position: relative;
  padding-bottom: 1.35rem;
}

.news-timeline-item:last-child {
  padding-bottom: 0;
}

.news-timeline-marker {
  position: absolute;
  left: -1.75rem;
  top: 1.35rem;
  width: 12px;
  height: 12px;
  margin-left: -0.21rem;
  border-radius: 50%;
  background: var(--accent-green);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.25);
  z-index: 1;
  transition: box-shadow var(--transition), transform var(--transition);
}

.news-timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.news-timeline-card:hover {
  border-color: rgba(74, 124, 89, 0.35);
  box-shadow: var(--shadow-sm), 0 0 20px rgba(74, 124, 89, 0.08);
  transform: translateX(4px);
}

.news-timeline-item:hover .news-timeline-marker {
  box-shadow: 0 0 0 4px rgba(74, 124, 89, 0.35);
  transform: scale(1.1);
}

.news-timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.55rem;
}

.news-timeline-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.news-timeline-summary {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}

.news-timeline-summary strong {
  color: var(--text-primary);
}

.news-timeline-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.news-timeline-points li {
  position: relative;
  padding-left: 0.95rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.news-timeline-points li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent-green-light);
  font-weight: 700;
}

.news-timeline-points strong {
  color: var(--text-secondary);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .news-featured-inner {
    padding: 1.5rem 1.15rem 1.35rem;
  }

  .news-featured h2 {
    font-size: 1.35rem;
  }

  .news-featured-summary {
    font-size: 0.95rem;
  }

  .news-timeline {
    padding-left: 1.35rem;
  }

  .news-timeline-marker {
    left: -1.35rem;
    width: 10px;
    height: 10px;
    top: 1.25rem;
  }

  .news-timeline-card {
    padding: 1rem 1.05rem;
  }

  .news-timeline-card:hover {
    transform: none;
  }
}

@media (min-width: 900px) {
  .news-featured-inner {
    padding: 2.5rem 2.5rem 2.25rem;
  }
}
