/* ══════════════════════════════════════════════════════════════════════════════
   NEWS PAGE - Matching About Us / FAQ / Home Design System
   ══════════════════════════════════════════════════════════════════════════════ */

/* Override about.css navbar styles for News page - use black background on scroll */
.site-nav.nav-scrolled {
  background: rgba(8,8,8,0.94) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

/* ── HERO VISUAL - News/Broadcast Animation ── */
.news-visual-wrap {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pulsing Glow Rings */
.news-glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 2px solid transparent;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.news-glow-ring-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, transparent 60%, rgba(139,92,246,0.08) 100%);
  border-color: rgba(139,92,246,0.15);
  animation: newsGlowPulse1 4s ease-in-out infinite;
}

.news-glow-ring-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, transparent 50%, rgba(34,211,238,0.06) 100%);
  border-color: rgba(34,211,238,0.12);
  animation: newsGlowPulse2 5s ease-in-out infinite 0.5s;
}

.news-glow-ring-3 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, transparent 40%, rgba(249,115,22,0.05) 100%);
  border-color: rgba(249,115,22,0.1);
  animation: newsGlowPulse3 6s ease-in-out infinite 1s;
}

@keyframes newsGlowPulse1 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

@keyframes newsGlowPulse2 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.9; }
}

@keyframes newsGlowPulse3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.8; }
}

/* Central News Core */
.news-central-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.news-core-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, transparent 70%);
  animation: newsCorePulse 3s ease-in-out infinite;
}

@keyframes newsCorePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.3; }
}

.news-core-inner {
  position: relative;
  width: 110px;
  height: 110px;
  background: linear-gradient(135deg, rgba(139,92,246,0.2) 0%, rgba(34,211,238,0.15) 100%);
  border: 2px solid rgba(139,92,246,0.3);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(139,92,246,0.2), inset 0 0 20px rgba(139,92,246,0.1);
}

.news-core-inner i {
  font-size: 2rem;
  background: linear-gradient(135deg, #8b5cf6, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.news-core-inner span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}

/* Orbiting News Nodes */
.news-node {
  position: absolute;
  width: 70px;
  height: 70px;
  background: rgba(26,36,33,0.9);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.4s ease;
  z-index: 5;
}

.news-node:hover {
  transform: scale(1.1);
  border-color: rgba(139,92,246,0.5);
  box-shadow: 0 8px 30px rgba(139,92,246,0.25);
}

.news-node i {
  font-size: 1.1rem;
  color: #a78bfa;
}

.news-node span {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

/* Node Positions */
.news-node-1 { top: 5%; left: 50%; transform: translateX(-50%); animation: newsNodeFloat1 6s ease-in-out infinite; }
.news-node-2 { top: 25%; right: 5%; animation: newsNodeFloat2 7s ease-in-out infinite 0.5s; }
.news-node-3 { bottom: 25%; right: 5%; animation: newsNodeFloat3 6.5s ease-in-out infinite 1s; }
.news-node-4 { bottom: 5%; left: 50%; transform: translateX(-50%); animation: newsNodeFloat4 7s ease-in-out infinite 1.5s; }
.news-node-5 { bottom: 25%; left: 5%; animation: newsNodeFloat5 6s ease-in-out infinite 2s; }
.news-node-6 { top: 25%; left: 5%; animation: newsNodeFloat6 7.5s ease-in-out infinite 2.5s; }

@keyframes newsNodeFloat1 { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }
@keyframes newsNodeFloat2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes newsNodeFloat3 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes newsNodeFloat4 { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
@keyframes newsNodeFloat5 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes newsNodeFloat6 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* Connection Lines SVG */
.news-connection-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.news-conn-line {
  stroke: rgba(139,92,246,0.2);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  animation: newsLineDash 20s linear infinite;
}

@keyframes newsLineDash {
  to { stroke-dashoffset: -100; }
}

/* Floating Particles */
.news-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(139,92,246,0.5);
  border-radius: 50%;
  z-index: 3;
}

.news-particle-1 { top: 15%; left: 30%; animation: newsParticleFloat 8s ease-in-out infinite; }
.news-particle-2 { top: 35%; right: 25%; animation: newsParticleFloat 10s ease-in-out infinite 1s; background: rgba(34,211,238,0.5); }
.news-particle-3 { bottom: 30%; left: 20%; animation: newsParticleFloat 9s ease-in-out infinite 2s; }
.news-particle-4 { bottom: 15%; right: 30%; animation: newsParticleFloat 11s ease-in-out infinite 3s; background: rgba(249,115,22,0.4); }

@keyframes newsParticleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  25% { transform: translate(10px, -15px) scale(1.2); opacity: 0.8; }
  50% { transform: translate(-5px, -25px) scale(0.8); opacity: 0.4; }
  75% { transform: translate(-15px, -10px) scale(1.1); opacity: 0.7; }
}

/* ── NEWS LIST SECTION ── */
.news-list-section {
  padding: 6rem 0;
  background: var(--ab-bg, #1a2421);
  position: relative;
  overflow: hidden;
}

.news-list-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1504711434969-e33886168f5c?w=1200&q=60');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  animation: newsPaperPan 30s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes newsPaperPan {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.05) translate(-2%, -2%); }
  100% { transform: scale(1.02) translate(2%, 2%); }
}

.news-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.news-search-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ab-muted, rgba(255,255,255,0.6));
  margin-bottom: 0;
}

#news-search {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--ab-text, #f0f0f5);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

#news-search:focus {
  outline: none;
  border-color: rgba(139,92,246,0.5);
  background: rgba(255,255,255,0.08);
}

#news-search::placeholder {
  color: rgba(255,255,255,0.4);
}

#news-refresh {
  padding: 0.75rem 1rem;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 8px;
  color: #a78bfa;
  cursor: pointer;
  transition: all 0.3s ease;
}

#news-refresh:hover {
  background: rgba(139,92,246,0.25);
  border-color: rgba(139,92,246,0.5);
  color: #a78bfa;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-item {
  position: relative;
  padding: 2rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  transition: all 0.4s ease;
  overflow: hidden;
}

.news-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.05) 0%, rgba(34,211,238,0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.news-item:hover::before {
  opacity: 1;
}

.news-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.news-item-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: #a78bfa;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.news-item-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 20px;
}

.news-item h3 {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ab-text, #f0f0f5);
  margin-bottom: 0.75rem;
}

.news-item p {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  color: var(--ab-muted, rgba(255,255,255,0.6));
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: justify;
}

.news-item-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #a78bfa;
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-item-link:hover {
  color: #22d3ee;
  gap: 0.75rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .news-visual-wrap { width: 350px; height: 350px; }
  .news-glow-ring-1 { width: 330px; height: 330px; }
  .news-glow-ring-2 { width: 260px; height: 260px; }
  .news-glow-ring-3 { width: 190px; height: 190px; }
  .news-core-inner { width: 90px; height: 90px; }
  .news-node { width: 60px; height: 60px; }
}

@media (max-width: 900px) {
  .news-item-header { flex-direction: column; }
  .news-item-date { margin-bottom: 0.5rem; }
}

@media (max-width: 768px) {
  .news-controls { flex-direction: column; align-items: stretch; }
  .news-search-label { margin-bottom: 0.5rem; }
}

@media (max-width: 600px) {
  .news-visual-wrap { width: 280px; height: 280px; }
  .news-glow-ring-1 { width: 260px; height: 260px; }
  .news-glow-ring-2 { width: 200px; height: 200px; }
  .news-glow-ring-3 { width: 150px; height: 150px; }
  .news-core-inner { width: 75px; height: 75px; }
  .news-core-inner i { font-size: 1.5rem; }
  .news-core-inner span { font-size: 0.55rem; }
  .news-node { width: 50px; height: 50px; border-radius: 12px; }
  .news-node i { font-size: 0.9rem; }
  .news-node span { font-size: 0.4rem; }
}
