:root {
  --navy: #0b1437;
  --navy-mid: #111d4a;
  --royal: #1e3a8a;
  --royal-light: #2563eb;
  --gold: #d4a017;
  --gold-light: #f0c040;
  --gold-pale: #fef3c7;
  --white: #ffffff;
  --text-muted: #94a3b8;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 12px 2px var(--gold); }
  50%       { box-shadow: 0 0 28px 6px var(--gold-light); }
}
@keyframes float-chip {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(8deg); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

.glow-card { animation: glow-pulse 3s ease-in-out infinite; }
.float-chip { animation: float-chip 4s ease-in-out infinite; }
.fade-in-up { animation: fadeInUp 0.7s ease both; }

.prose {
  color: #e2e8f0;
  line-height: 1.8;
  font-size: 1rem;
  max-width: 100%;
}
.prose h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 2rem 0 0.75rem;
  border-bottom: 2px solid var(--royal);
  padding-bottom: 0.4rem;
}
.prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  margin: 1.5rem 0 0.5rem;
}
.prose p { margin-bottom: 1.1rem; }
.prose a {
  color: var(--gold-light);
  text-decoration: underline;
}
.prose a:hover { color: var(--white); }
.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose ul li { list-style: disc; margin-bottom: 0.4rem; }
.prose ol li { list-style: decimal; margin-bottom: 0.4rem; }
.prose blockquote {
  border-left: 4px solid var(--gold);
  padding: 0.5rem 1rem;
  color: var(--gold-pale);
  font-style: italic;
  margin: 1.5rem 0;
  background: rgba(212,160,23,0.08);
  border-radius: 0 8px 8px 0;
}
/* Horizontal scroll for all tables */
.prose table,
table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
/* Ensure table containers scroll on overflow */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

.prose table th {
  background: var(--royal);
  color: var(--gold-light);
  padding: 0.6rem 0.9rem;
  text-align: left;
  font-weight: 700;
}
.prose table td {
  background: var(--navy-mid);
  color: #e2e8f0;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.prose table tr:hover td { background: rgba(30,58,138,0.4); }
.prose img { max-width: 100%; border-radius: 10px; margin: 1.5rem 0; }
.prose .overflow-x-auto { overflow-x: auto; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #0b1437;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.7rem 1.8rem;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,160,23,0.5);
}
.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold-light);
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.65rem 1.75rem;
  display: inline-block;
  transition: all 0.2s;
  background: transparent;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--gold);
  color: #0b1437;
}

.panel-curved {
  border-radius: 1.5rem;
  background: linear-gradient(135deg, var(--navy-mid) 60%, var(--royal) 100%);
  border: 1px solid rgba(212,160,23,0.18);
}

.hero-bg {
  background-image: url('/images/hero.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

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