:root {
  --cia-red: #9e1b1b;
  --cia-dark: #1a1a1a;
  --cia-light: #e6e6e6;
  --cia-accent: #0066cc;
}

body {
  font-family: "Courier New", monospace;
  background-color: var(--cia-dark);
  color: var(--cia-light);
  background-image: url("https://storage.googleapis.com/gweb-uniblog-publish-prod/original_images/intelligence_desk.gif");
  background-size: cover;
}

.top-bar {
  background-color: var(--cia-red);
  height: 8px;
}

.header {
  border-bottom: 1px solid var(--cia-red);
  padding-bottom: 15px;
}

.nav-tabs .nav-link {
  color: var(--cia-light);
  border: none;
  font-weight: bold;
}

.nav-tabs .nav-link.active {
  background-color: transparent;
  color: var(--cia-red);
  border-bottom: 2px solid var(--cia-red);
}

.card {
  background-color: rgba(30, 30, 30, 0.8);
  border: 1px solid var(--cia-red);
  margin-bottom: 20px;
}

.card-header {
  background-color: rgba(158, 27, 27, 0.2);
  border-bottom: 1px solid var(--cia-red);
}

a {
  color: var(--cia-accent);
  text-decoration: none;
}

a:hover {
  color: var(--cia-red);
  text-decoration: underline;
}

.stamp {
  position: absolute;
  right: 20px;
  top: 20px;
  opacity: 0.7;
  transform: rotate(15deg);
}

.console-text {
  color: #00ff00;
  font-family: monospace;
}

.blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  from,
  to {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.typewriter {
  overflow: hidden;
  border-right: 0.15em solid var(--cia-red);
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 0.15em;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--cia-red);
  }
}

.terminal-window {
  background-color: #000;
  border: 1px solid var(--cia-red);
  border-radius: 5px;
  padding: 15px;
  font-family: monospace;
  color: #0f0;
}

.terminal-header {
  background-color: #333;
  padding: 5px 10px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  margin-bottom: 10px;
}

.terminal-body {
  min-height: 200px;
}

.command-line {
  color: #0f0;
}

.cursor {
  animation: blink 1s infinite;
}

.blog-header-image {
  height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: 30px;
  border: 1px solid var(--cia-red);
}

.blog-header-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.blog-title {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 2;
  max-width: 80%;
}

.blog-meta {
  position: absolute;
  bottom: 20px;
  left: 40px;
  z-index: 2;
}

.blog-content {
  line-height: 1.8;
  font-size: 1.1rem;
}

.blog-content h2 {
  color: var(--cia-red);
  margin-top: 30px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--cia-red);
  padding-bottom: 10px;
}

.blog-content h3 {
  margin-top: 25px;
  margin-bottom: 15px;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--cia-red);
  margin: 20px 0;
}

.blog-content pre {
  background-color: #000;
  padding: 15px;
  border: 1px solid var(--cia-red);
  overflow-x: auto;
  margin: 20px 0;
}

.blog-content code {
  font-family: "Courier New", monospace;
  color: #00ff00;
}

.tag {
  display: inline-block;
  background-color: rgba(158, 27, 27, 0.2);
  color: var(--cia-light);
  padding: 3px 10px;
  margin-right: 8px;
  margin-bottom: 8px;
  border-radius: 3px;
  font-size: 0.8rem;
}

.author-card {
  border: 1px solid var(--cia-red);
  padding: 20px;
  margin-top: 40px;
}

.author-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--cia-red);
  object-fit: cover;
}