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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #00550d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #003d09;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #00550d;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none !important;
    }
}

/* Accessibility focus styles */
*:focus {
    outline: 2px solid #00550d;
    outline-offset: 2px;
}

/* Rich text content styling */
.rich-text-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1.5rem 0 1rem;
}

.rich-text-content h2 {
    font-size: 2rem;
    font-weight: bold;
    margin: 1.5rem 0 1rem;
}

.rich-text-content h3 {
    font-size: 1.75rem;
    font-weight: bold;
    margin: 1rem 0;
}

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

.rich-text-content ul, .rich-text-content ol {
    margin: 1rem 0 1rem 1.5rem;
}

.rich-text-content li {
    margin-bottom: 0.5rem;
}

.rich-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.rich-text-content blockquote {
    border-left: 4px solid #00550d;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #666;
}

.rich-text-content a {
    color: #00550d;
    text-decoration: underline;
}

.rich-text-content a:hover {
    color: #003d09;
}

/* Card hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}