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

.marquee-container {
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

.marquee-content:hover {
  animation-play-state: paused;
}

/* Parallax Effect */
@keyframes parallax {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse Animation for CTAs */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

/* Prose Styling for Markdown Content */
.prose-custom {
  color: #334155;
  line-height: 1.6;
}

.prose-custom h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.prose-custom h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #334155;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.prose-custom h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #475569;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.prose-custom p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #475569;
}

.prose-custom a {
  color: #b59855;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.prose-custom a:hover {
  color: #9d7f47;
  text-decoration: underline;
}

.prose-custom ul,
.prose-custom ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.prose-custom ul {
  list-style-type: disc;
}

.prose-custom ol {
  list-style-type: decimal;
}

.prose-custom li {
  margin-bottom: 0.625rem;
  line-height: 1.7;
  color: #475569;
  font-size: 1.0625rem;
}

.prose-custom li::marker {
  color: #b59855;
}

.prose-custom strong {
  font-weight: 600;
  color: #1e293b;
}

.prose-custom em {
  font-style: italic;
}

.prose-custom blockquote {
  border-left: 0.25rem solid #b59855;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #64748b;
  background-color: #f8fafc;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-radius: 0.375rem;
}

.prose-custom blockquote p {
  margin-bottom: 0;
}

.prose-custom table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
  border: 0.0625rem solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose-custom thead {
  background-color: #1e293b;
}

.prose-custom thead th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 0.125rem solid #334155;
}

.prose-custom tbody tr {
  border-bottom: 0.0625rem solid #e2e8f0;
  transition: background-color 0.2s ease;
}

.prose-custom tbody tr:hover {
  background-color: #f8fafc;
}

.prose-custom tbody tr:last-child {
  border-bottom: none;
}

.prose-custom td {
  padding: 0.875rem 1rem;
  color: #475569;
}

.prose-custom img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
  box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
}

.prose-custom hr {
  border: none;
  height: 0.0625rem;
  background-color: #e2e8f0;
  margin: 2.5rem 0;
}

.prose-custom code {
  background-color: #f1f5f9;
  color: #b59855;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-family: 'Courier New', monospace;
}

.prose-custom pre {
  background-color: #1e293b;
  color: #f1f5f9;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.prose-custom pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .prose-custom h2 {
    font-size: 1.625rem;
  }
  
  .prose-custom h3 {
    font-size: 1.375rem;
  }
  
  .prose-custom p,
  .prose-custom li {
    font-size: 1rem;
  }
  
  .prose-custom table {
    font-size: 0.875rem;
  }
}

/* Ensure proper spacing and readability */
.prose-custom > *:first-child {
  margin-top: 0;
}

.prose-custom > *:last-child {
  margin-bottom: 0;
}

/* Additional utility for content sections */
.prose-custom section {
  margin-bottom: 3rem;
}

/* Focus styles for accessibility */
.prose-custom a:focus,
.prose-custom button:focus {
  outline: 0.125rem solid #b59855;
  outline-offset: 0.125rem;
}

/* Smooth transitions */
* {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
