/* News Feed & Article Styles */

.news-section {
  padding: 3rem 0 5rem;
}

.news-header-bar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .news-header-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.category-scroll-container {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

/* Pinned Featured Article Card */
.pinned-article-card {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(20, 27, 42, 0.9), rgba(10, 14, 22, 0.95));
  border: 1px solid var(--border-gold);
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.7), var(--shadow-glow-gold);
  overflow: hidden;
  margin-bottom: 3rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .pinned-article-card {
    grid-template-columns: 1.1fr 1fr;
  }
}

.pinned-article-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.4);
}

.pinned-image-wrapper {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.pinned-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.pinned-article-card:hover .pinned-image {
  transform: scale(1.04);
}

.pinned-badge-overlay {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.pinned-content-body {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pinned-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.pinned-subtitle {
  font-size: 1.05rem;
  color: var(--text-gold);
  margin-bottom: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.pinned-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Standard Article Card */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow-ember);
}

.card-image-box {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #090d15;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.article-card:hover .card-image {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

.article-card:hover .card-title {
  color: var(--color-ember-bright);
}

.card-excerpt {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-author-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.author-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--text-primary);
}

.author-role-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

/* Breaking Banner */
.breaking-ticker-wrap {
  background: linear-gradient(90deg, #991b1b, #7f1d1d, #450a0a);
  border-bottom: 1px solid rgba(239, 68, 68, 0.4);
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(185, 28, 28, 0.35);
}

.breaking-label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #ef4444;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
}

.breaking-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fee2e2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
