/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #090040 0%, #471396 100%);
  color: #FFCC00;
  font-family: 'VCR OSD Mono', 'Courier New', Courier, monospace;
  overflow-x: hidden;
}

/* Prevent text cursor and enhance accessibility */
body,
header h1,
.content-caption,
.copyright,
.link {
  user-select: none; /* Prevent text selection */
  cursor: default; /* Default cursor for non-interactive elements */
}

a,
button {
  outline: none; /* Remove default browser outline */
}

a:focus,
button:focus {
  box-shadow: 0 0 8px 2px #B13BFF; /* Neon purple glow for focus */
  transition: box-shadow 0.3s ease;
}

/* Header */
header {
  padding: 1.5rem;
  text-align: center;
  background: rgba(9, 0, 64, 0.8);
  box-shadow: 0 0 20px rgba(177, 59, 255, 0.5);
}

header h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #FFCC00;
  text-shadow: 0 0 10px #B13BFF, 0 0 20px #B13BFF;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: neon-glow 3s ease-in-out infinite;
}

.homeLink {
  text-decoration: none;
}

/* Main content */
.latest {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  gap: 2rem;
}

.content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.content-img-container {
  position: relative;
  width: 100%;
}

.content-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  filter: contrast(1.2) brightness(0.9);
  box-shadow: 0 0 15px rgba(177, 59, 255, 0.7);
  border-radius: 50%;
}

.content-caption {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #FFCC00;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  text-align: center;
  background: rgba(9, 0, 64, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  text-shadow: 0 0 5px #B13BFF;
  text-transform: uppercase;
}

/* Footer */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: rgba(9, 0, 64, 0.8);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.copyright {
  color: #FFCC00;
  text-shadow: 0 0 5px #B13BFF;
}

.links {
  display: flex;
  gap: 1rem;
}

.link {
  color: #FFCC00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.link:hover {
  color: #B13BFF;
  text-shadow: 0 0 5px #FFCC00;
}

/* Neon glow animation */
@keyframes neon-glow {
  0%, 100% {
    text-shadow: 0 0 10px #B13BFF, 0 0 20px #B13BFF;
    box-shadow: 0 0 10px rgba(177, 59, 255, 0.5);
  }
  50% {
    text-shadow: 0 0 15px #B13BFF, 0 0 30px #B13BFF;
    box-shadow: 0 0 15px rgba(177, 59, 255, 0.7);
  }
}

/* Responsive design */
@media (max-width: 600px) {
  header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .content-caption {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
  }

  footer {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Override Bootstrap styles if needed */
.btn {
  font-family: 'VCR OSD Mono', 'Courier New', Courier, monospace !important;
  background: linear-gradient(45deg, #471396, #B13BFF) !important;
  color: #FFCC00 !important;
  border: 3px solid #FFCC00 !important;
  border-radius: 15px !important;
  transition: all 0.3s ease !important;
}

.btn:hover {
  background: linear-gradient(45deg, #B13BFF, #471396) !important;
  color: #090040 !important;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(177, 59, 255, 0.8);
}

.btn:focus {
  box-shadow: 0 0 8px 2px #B13BFF !important;
}

/* News item styles */
.news-item {
  background: rgba(9, 0, 64, 0.85);
  border: 3px solid #FFCC00;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 15px rgba(177, 59, 255, 0.6), inset 0 0 10px rgba(177, 59, 255, 0.3);
  transition: all 0.3s ease;
  animation: neon-pulse 4s ease-in-out infinite;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(177, 59, 255, 0.8), inset 0 0 15px rgba(177, 59, 255, 0.5);
}

.news-item h3 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: #FFCC00;
  text-shadow: 0 0 8px #B13BFF;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-item h3 a {
  color: #FFCC00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-item h3 a:hover {
  color: #B13BFF;
  text-shadow: 0 0 10px #FFCC00;
}

.news-item p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #E6E6FA;
  text-shadow: 0 0 5px rgba(177, 59, 255, 0.5);
  line-height: 1.6;
}

/* Neon pulse animation for news items */
@keyframes neon-pulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(177, 59, 255, 0.6), inset 0 0 10px rgba(177, 59, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(177, 59, 255, 0.8), inset 0 0 15px rgba(177, 59, 255, 0.4);
  }
}

/* Ensure news container has proper spacing */
#news-container {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Responsive adjustments for news items */
@media (max-width: 600px) {
  .news-item {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .news-item h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
  }

  .news-item p {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
  }
}

.headline-cont{
  display: flex;
  flex-direction: column;
}

.headline-tag {
  text-align: center;
}

.news-item {
  margin-bottom: 20px;
  padding: 10px;
  border-bottom: 1px solid #eee;
}
.source-domain {
  font-weight: bold;
  color: rgba(177, 59, 255, 0.6);
  margin-bottom: 5px;
  font-size: 0.9em;
}