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

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-in { animation: fadeIn 0.5s ease forwards; }

/* Slide-up animation */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up { animation: slideUp 0.5s ease forwards; }

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.2s ease;
}
#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
#mobile-menu:not(.hidden) {
    max-height: 100vh;
    opacity: 1;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #1a7a2e;
    outline-offset: 2px;
}

/* Skip to content for accessibility */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: #1a7a2e;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
}
.skip-to-content:focus {
    left: 0;
}

/* Print styles */
@media print {
    nav, footer, .no-print, .skip-to-content { display: none !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* Custom scrollbar for webkit */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #1a7a2e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #0d4f1f; }

/* SVG icon base */
.icon { width: 1.25rem; height: 1.25rem; display: inline-block; vertical-align: middle; }

/* Legacy inline style overrides for Tailwind-only pages */
.bg-dark { background-color: #0d4f1f; }
.bg-primary { background-color: #1a7a2e; }
.text-dark { color: #0d4f1f; }
.text-primary { color: #1a7a2e; }
.bg-mint { background-color: #e8f5e9; }
.border-primary { border-color: #1a7a2e; }
.hover\:bg-dark:hover { background-color: #0d4f1f; }

/* ============================================================
   Blog Content Styles
   Applies to .blog-content wrapper in single blog posts.
   Future blog posts with standard HTML will be styled automatically.
   ============================================================ */

.blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
}

.blog-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d4f1f;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8f5e9;
}
.blog-content h2:first-child { margin-top: 0; }

.blog-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0d4f1f;
    margin: 2rem 0 0.75rem;
}

.blog-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a7a2e;
    margin: 1.5rem 0 0.5rem;
}

.blog-content p { margin-bottom: 1.25rem; }

.blog-content strong { color: #0d4f1f; font-weight: 700; }

.blog-content a {
    color: #1a7a2e;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: color 0.2s;
}
.blog-content a:hover { color: #0d4f1f; }

.blog-content ul,
.blog-content ol {
    margin: 0 0 1.25rem 1.5rem;
    padding: 0;
}
.blog-content ul { list-style-type: disc; }
.blog-content ol { list-style-type: decimal; }
.blog-content li { margin-bottom: 0.4rem; }

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.blog-content blockquote {
    border-left: 4px solid #1a7a2e;
    background: #e8f5e9;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #4b5563;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.blog-content th,
.blog-content td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}
.blog-content th {
    background: #e8f5e9;
    color: #0d4f1f;
    font-weight: 700;
}
.blog-content tr:nth-child(even) { background: #f9fafb; }

.blog-content code {
    background: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.85em;
    color: #0d4f1f;
}

.blog-content pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.blog-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Responsive images inside blog-content */
.blog-content img {
    max-width: 100%;
    height: auto;
}

.blog-content figure {
    margin: 1.5rem 0;
}

.blog-content figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.blog-content hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2rem 0;
}

.blog-content iframe {
    max-width: 100%;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

.blog-content .wp-block-image,
.blog-content .wp-block-media-text {
    margin: 1.5rem 0;
}

/* Legacy blog custom classes (from migrated content) */
.blog-content .highlight-box {
    background: #e8f5e9;
    border-left: 4px solid #1a7a2e;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.blog-content .highlight-box p:last-child { margin-bottom: 0; }
.blog-content .highlight-box strong { color: #0d4f1f; }

.blog-content .toc {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.blog-content .toc h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0;
}

.blog-content .cta-in-article {
    background: linear-gradient(135deg, #0d4f1f, #1a7a2e);
    color: white;
    border-radius: 0.75rem;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
    text-align: center;
}
.blog-content .cta-in-article p { color: rgba(255,255,255,0.9); margin-bottom: 1rem; }
.blog-content .cta-in-article .btn,
.blog-content .cta-in-article .btn-primary {
    display: inline-block;
    background: #d4a017;
    color: #0d4f1f;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.3s;
}
.blog-content .cta-in-article .btn:hover,
.blog-content .cta-in-article .btn-primary:hover {
    background: #c49510;
}
