/* Small additions on top of app.css (the original site's compiled styles). */

[hidden] { display: none !important; }

/* Answers in FAQ accordions and other toggles */
[data-toggle-next][aria-expanded="true"] > svg:last-child,
[data-faq-toggle][aria-expanded="true"] svg { transform: rotate(180deg); }
[data-faq-toggle] svg { transition: transform .3s; }
[data-faq-toggle][aria-expanded="true"] svg { color: #2a76ff; }

/* Chat messages */
.chat-msg { max-width: 85%; border-radius: 1rem; padding: .625rem 1rem; font-size: .875rem; line-height: 1.6; white-space: pre-wrap; }
.chat-msg.user { background: #2a76ff; color: #fff; border-bottom-right-radius: .125rem; }
.chat-msg.bot { background: #fff; color: #374151; border: 1px solid #f3f4f6; border-bottom-left-radius: .125rem; }

/* Form messages */
.form-msg-error { color: #dc2626; font-size: .875rem; margin-top: .5rem; }
.form-success { text-align: center; padding: 1.5rem .5rem; }
.form-success h3 { font-weight: 700; color: #0b1f3a; font-size: 1.125rem; margin-top: .75rem; }
.form-success p { color: #6b7280; font-size: .875rem; margin-top: .25rem; }
.form-success .icon { width: 3.5rem; height: 3.5rem; border-radius: 9999px; background: rgba(34, 197, 94, .1); color: #16a34a; display: inline-flex; align-items: center; justify-content: center; }

/* Blog posts written in the admin editor */
.blog-content { color: #374151; font-size: 1.0625rem; line-height: 1.8; }
.blog-content > * + * { margin-top: 1.25em; }
.blog-content h2 { font-size: 1.75rem; font-weight: 800; color: #0b1f3a; line-height: 1.25; margin-top: 2em; }
.blog-content h3 { font-size: 1.3rem; font-weight: 700; color: #0b1f3a; margin-top: 1.6em; }
.blog-content a { color: #0b1f3a; text-decoration: underline; text-underline-offset: 3px; }
.blog-content ul { list-style: disc; padding-left: 1.4em; }
.blog-content ol { list-style: decimal; padding-left: 1.4em; }
.blog-content li + li { margin-top: .4em; }
.blog-content blockquote { border-left: 4px solid #2a76ff; padding: .25em 0 .25em 1em; color: #4b5563; font-style: italic; }
.blog-content img { border-radius: 1rem; max-width: 100%; height: auto; }
.blog-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.blog-content th, .blog-content td { border: 1px solid #e5e7eb; padding: .6em .8em; text-align: left; vertical-align: top; }
.blog-content th { background: #f9fafb; color: #0b1f3a; }
.blog-content strong { color: #0b1f3a; }
.blog-content pre { background: #0b1f3a; color: #fff; padding: 1em; border-radius: .75rem; overflow-x: auto; }

/* Cover placeholder for posts without an image */
.blog-cover-fallback { background: linear-gradient(135deg, #0b1f3a, #163a6b); color: #fff; display: flex; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; font-weight: 700; font-size: 1.1rem; }
