body[data-md-color-media*="(prefers-color-scheme: light)"] .front-logo {
  filter: brightness(0.5);
}

/* Add light mode styles for news cards */
body[data-md-color-media*="(prefers-color-scheme: light)"] .news-card {
  background-color: rgba(240, 240, 245, 0.9);
  border-color: #4a6bab;
  box-shadow: 0 0 10px rgba(100, 130, 200, 0.2);
}

body[data-md-color-media*="(prefers-color-scheme: light)"] .news-card-title {
  background: linear-gradient(135deg, #e0e8ff, #c0d0f0);
  color: #1a237e !important;
  text-shadow: 0 0 5px rgba(0, 90, 180, 0.2);
}

body[data-md-color-media*="(prefers-color-scheme: light)"] .news-card-text {
  color: #2c3e50;
}

body[data-md-color-media*="(prefers-color-scheme: light)"] .news-card-date {
  color: #4a5568;
}

/* More subtle hover effects for light mode */
body[data-md-color-media*="(prefers-color-scheme: light)"] .news-card:hover {
  box-shadow: 0 0 12px rgba(70, 90, 180, 0.3), inset 0 0 8px rgba(100, 150, 200, 0.2);
  transform: translateY(-3px);
}

body[data-md-color-media*="(prefers-color-scheme: light)"] .news-card::after {
  border-top: 2px solid #4a6bab;
  border-left: 2px solid #4a6bab;
}

body[data-md-color-media*="(prefers-color-scheme: light)"] .news-card:hover::after {
  border-color: #3949ab;
}

body[data-md-color-media*="(prefers-color-scheme: light)"] .news-card-title:hover {
  color: #1a237e !important;
  text-shadow: 0 0 8px rgba(60, 80, 170, 0.4);
  background: linear-gradient(135deg, #d0e0ff, #b0c0e0);
}

body[data-md-color-media*="(prefers-color-scheme: light)"] .news-card-text::after {
  color: #3949ab;
}

/* Grid container */
.news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Individual card styling */
.news-card {
  border: 2px solid #4a26ab;
  border-radius: 8px;
  width: calc(50% - 20px);
  box-shadow: 0 0 15px rgba(0, 162, 255, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  background-color: rgba(10, 12, 34, 0.6);
  transition: all 0.3s ease;
  position: relative;
}

/* Circuit board pattern */
.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(76, 0, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(0, 247, 255, 0.05) 0%, transparent 50%),
    linear-gradient(to right, rgba(32, 17, 85, 0.2) 1px, transparent 1px) 0 0 / 30px 100%,
    linear-gradient(to bottom, rgba(32, 17, 85, 0.2) 1px, transparent 1px) 0 0 / 100% 30px;
  pointer-events: none;
  z-index: 0;
}

.news-card:hover {
  box-shadow: 0 0 20px rgba(89, 0, 255, 0.5), inset 0 0 15px rgba(0, 195, 255, 0.3);
  transform: translateY(-5px);
}

/* Top-left corner accent */
.news-card::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-top: 2px solid #00f0ff;
  border-left: 2px solid #00f0ff;
  top: 5px;
  left: 5px;
  z-index: 1;
}

.news-card:hover::after {
  border-color: #00ff66;
}

.news-card:hover .news-card-text::before {
  border-color: #00ff66;
}

/* Add this media query for mobile devices */
@media (max-width: 768px) {
  .news-card {
    width: calc(100% - 20px);
  }
}

.news-card-title {
  font-family: "Roboto", sans-serif;
  width: 100%;
  text-align: center;
  padding: 40px 0;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 40px;
  color: #00f0ff !important;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  position: relative;
  background: linear-gradient(135deg, #000428, #1a237e);
  overflow: hidden;
  z-index: 1;
}

/* Cyber grid effect */
.news-card-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(23, 27, 75, 0.3) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 27, 75, 0.3) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* Glowing lines effect */
.news-card-title::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(76, 0, 255, 0.1) 0%, transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(0, 247, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.news-card-title:hover {
  color: #00ff66 !important;
  text-shadow: 0 0 15px rgba(0, 255, 102, 0.7);
  background: linear-gradient(135deg, #002800, #004d00);
}

.news-card-date {
  font-size: 16px;
  color: #a9b7ff;
  padding: 10px 0px !important;
  font-family: "Courier New", monospace;
  z-index: 1;
  position: relative;
}

.news-card-text {
  text-align: justify;
  padding: 0px 20px 20px 20px !important;
  color: #b3e5fc;
  z-index: 1;
  position: relative;
  font-family: "Consolas", monospace;
  letter-spacing: 0.5px;
}

/* Add blinking cursor effect to the cards */
@keyframes blink-cursor {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.news-card-text::after {
  content: "|";
  margin-left: 3px;
  animation: blink-cursor 1s infinite;
  color: #00f0ff;
}

/* Command key/arg/value inline highlights (used in command reference pages) */
.t-cmd-key {
  font-weight: 700;
  color: #f1fa8c;
}

.t-cmd-arg {
  color: #c0c0ff;
}

.t-cmd-value {
  font-weight: 700;
  color: white;
}
