/* Explain: Styles for site components including cards, testimonials, AI chat, and article typography. */
/* Dark premium card modifier — overrides the light premium-card background
   so dark cards keep their navy surface instead of being forced to white. */
.premium-card.premium-card--dark {
    background: var(--primary-color) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px -10px rgba(10, 25, 47, 0.35) !important;
}

.premium-card.premium-card--dark:hover {
    border-color: var(--accent-color) !important;
    box-shadow: 0 24px 50px -12px rgba(10, 25, 47, 0.45) !important;
}

/* Homepage testimonials slider — inset each slide slightly so the card's soft
   shadow stays visible inside the Swiper clip area instead of being cut off. */
.testimonials-slider .swiper-slide {
    padding: 0.5rem 0.75rem 2rem;
}

/* Testimonial dot indicators — one small dot per quote; the active dot
   stretches into an accent-coloured pill so the current quote is obvious. */
.testimonials-pagination .testimonials-bullet {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 9999px;
    background: var(--border-color);
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.testimonials-pagination .testimonials-bullet:hover {
    background: var(--text-muted);
}

.testimonials-pagination .testimonials-bullet-active {
    width: 28px;
    background: var(--accent-color);
}

/* AI advisor chat — generous spacing so longer replies stay comfortable to read */
.chat-rich {
    line-height: 1.7;
}

.chat-rich p {
    margin: 0 0 0.6em;
}

.chat-rich p:last-child {
    margin-bottom: 0;
}

.chat-rich ul,
.chat-rich ol {
    margin: 0.4em 0 0.6em;
    padding-inline-start: 1.1rem;
}

.chat-rich li {
    margin-bottom: 0.3em;
}

.chat-rich li:last-child {
    margin-bottom: 0;
}

.chat-rich strong,
.chat-rich b {
    font-weight: 700;
    color: var(--primary-color);
}

.chat-rich a {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: underline;
}

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

/* Blog article body — explicit typography so headings, quotes and lists get
   clear, consistent spacing and the copy stays comfortable to read on mobile
   (independent of the Tailwind typography plugin). */
.article-content {
    color: var(--text-color);
    font-size: 1.0625rem;
    line-height: 1.85;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 1024px) {
    .article-content {
        font-size: 1.125rem;
    }
}

.article-content > *:first-child { margin-top: 0; }
.article-content > *:last-child { margin-bottom: 0; }

.article-content p {
    margin: 0 0 1.5rem;
    color: var(--text-color);
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    margin: 2.75rem 0 1rem;
}

.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--primary-color);
    margin: 2.25rem 0 0.85rem;
}

.article-content h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.75rem 0 0.75rem;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.5rem;
    padding-inline-start: 1.5rem;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content li {
    margin-bottom: 0.65rem;
    padding-inline-start: 0.35rem;
    line-height: 1.75;
}

.article-content li::marker {
    color: var(--accent-color);
    font-weight: 700;
}

.article-content li:last-child { margin-bottom: 0; }

.article-content blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-inline-start: 4px solid var(--accent-color);
    border-radius: 0.75rem;
    background: var(--surface-color);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--primary-color);
}

.article-content blockquote p { margin: 0 0 0.75rem; }
.article-content blockquote p:last-child { margin-bottom: 0; }

.article-content a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover { color: var(--accent-hover); }

.article-content strong,
.article-content b {
    font-weight: 700;
    color: var(--text-color);
}

.article-content img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 2rem 0;
}

.article-content hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 2.5rem 0;
}

.article-content code {
    background: var(--surface-alt);
    padding: 0.15em 0.45em;
    border-radius: 0.35rem;
    font-size: 0.9em;
}

@media (max-width: 640px) {
    .article-content {
        font-size: 1rem;
        line-height: 1.8;
    }
    .article-content h2 {
        font-size: 1.4rem;
        margin-top: 2.25rem;
    }
    .article-content h3 {
        font-size: 1.15rem;
        margin-top: 1.9rem;
    }
    .article-content blockquote {
        padding: 1rem 1.15rem;
        font-size: 1.02rem;
    }
}