@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(1.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-marquee {
  animation: marquee 20s linear infinite;
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.prose {
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 100%;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e40af;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.4;
}

.prose p {
  margin-bottom: 1.25em;
  color: #374151;
}

.prose ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.prose ol {
  list-style-type: decimal;
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.prose li {
  margin-bottom: 0.4em;
  color: #374151;
}

.prose a {
  color: #1d4ed8;
  text-decoration: underline;
}

.prose a:hover {
  color: #1e40af;
}

.prose blockquote {
  border-left: 0.25em solid #f59e0b;
  padding-left: 1em;
  color: #6b7280;
  font-style: italic;
  margin: 1.5em 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5em 0;
}

.prose table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  white-space: nowrap;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9em;
}

.prose th {
  background-color: #1e3a8a;
  color: #ffffff;
  padding: 0.6em 1em;
  text-align: left;
  font-weight: 600;
}

.prose td {
  padding: 0.6em 1em;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
}

.prose tr:nth-child(even) td {
  background-color: #f9fafb;
}

.prose strong {
  font-weight: 700;
  color: #111827;
}

.prose code {
  background-color: #f3f4f6;
  color: #1f2937;
  padding: 0.15em 0.4em;
  border-radius: 0.25em;
  font-size: 0.875em;
}

* {
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .prose h2 {
    font-size: 1.25rem;
  }
  .prose h3 {
    font-size: 1.05rem;
  }
}
