/* News section styles (homepage + dynamic news) */

/* News Section */
.news {
    background: 
      radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 20% 80%, rgba(108, 171, 221, 0.06) 0%, transparent 50%),
      var(--darker);
  }
  
  .news-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
.news-card {
  background: linear-gradient(145deg, rgba(28, 44, 91, 0.35) 0%, rgba(10, 10, 15, 0.9) 100%);
  border: 1px solid rgba(108, 171, 221, 0.15);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky-blue), var(--navy));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(108, 171, 221, 0.15);
  border-color: rgba(108, 171, 221, 0.3);
}

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

.news-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.12) 0%, rgba(28, 44, 91, 0.3) 50%, rgba(10, 10, 15, 0.95) 100%);
  border-color: rgba(212, 175, 55, 0.25);
}

.news-card.featured::before {
  background: var(--gradient-gold);
  opacity: 1;
}

.news-card.featured:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 25px 60px rgba(212, 175, 55, 0.12);
}

/* News Card Image */
.news-card-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(28, 44, 91, 0.6) 0%, rgba(10, 10, 15, 0.8) 100%);
  position: relative;
}

.news-card.featured .news-card-image {
  height: 220px;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.08);
}

.news-card-image.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-placeholder {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: rgba(108, 171, 221, 0.25);
}
  
.news-badge {
  display: inline-block;
  background: var(--gradient-gold);
  color: var(--dark);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  width: fit-content;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}
  
.news-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  flex: 1;
}

.news-card.featured .news-content {
  padding: 2rem;
}
  
  .news-date {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sky-blue);
  }
  
  .news-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 1px;
    color: var(--light);
    line-height: 1.2;
    transition: color 0.3s ease;
  }
  
  .news-card.featured .news-title {
    font-size: 2rem;
  }
  
  .news-card:hover .news-title {
    color: var(--gold);
  }
  
  .news-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(240, 244, 248, 0.65);
  }
  
  .news-card.featured .news-excerpt {
    font-size: 1.05rem;
  }
  
  .news-source {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(240, 244, 248, 0.4);
    margin-top: 0.5rem;
  }
  
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card-image {
    height: 180px;
  }

  .news-card.featured .news-card-image {
    height: 220px;
  }

  .news-content {
    padding: 1.25rem;
  }

  .news-card.featured .news-content {
    padding: 1.5rem;
  }

  .news-title {
    font-size: 1.4rem;
  }

  .news-card.featured .news-title {
    font-size: 1.6rem;
  }
}

/* ============================================
   DYNAMIC NEWS STYLES
   ============================================ */

/* External link indicator */
.external-icon {
    font-size: 0.75em;
    color: var(--gold);
    margin-left: 0.25rem;
    vertical-align: super;
  }
  
  .news-list-external {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    margin-left: 0.5rem;
  }
  
  /* News section "View All" button */
  .news-more {
    margin-top: 2.5rem;
    text-align: center;
  }
  
  .btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--sky-blue);
    padding: 0.875rem 2rem;
    border: 2px solid var(--sky-blue);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
  }
  
  .btn-secondary:hover {
    background: var(--sky-blue);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 171, 221, 0.3);
  }
  
  /* Empty news state */
  .news-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
  }
  
  .news-empty p {
    font-size: 1.1rem;
    margin: 0;
  }
  
  /* Live badge for dynamic news */
  .news-list-badge[data-live="true"]::before,
  .news-badge[data-live="true"]::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    margin-right: 0.4rem;
    animation: pulse-live 2s ease-in-out infinite;
  }
  
  @keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
  }