/* Explain: Styling for rich text components, animations, and UI elements. - */
.rich-text h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.rich-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.rich-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.rich-text a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rich-text a:hover {
    color: var(--accent-hover);
}

.rich-text ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.rich-text ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.rich-text li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.rich-text blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.25rem;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    background: #f3f4f6;
    padding: 1.25rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

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

.animate-marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    padding-right: 2rem;
}

.rich-text img {
    border-radius: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}