/* Admin-managed website content: case-study + review marquees, the homepage blog strip,
   and the public blog pages. Plain CSS on purpose -- the public site runs on the
   aigence theme, not Tailwind. */

.sc-section { position: relative; padding: 90px 0 100px; overflow: hidden; }
.sc-section--dark { background: var(--aigence-black7, #020B28); color: #fff; }
.sc-section--light { background: var(--aigence-white2, #F1F3FF); }
.sc-section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; padding: 0 16px; }
.sc-eyebrow {
    display: inline-block; margin-bottom: 14px; padding: 6px 16px; border-radius: 100px;
    font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    color: #fff; background: linear-gradient(90deg, #D033AE 0%, #425CFE 100%);
}
.sc-section__title { margin: 0; font-size: clamp(30px, 4vw, 48px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.sc-section--dark .sc-section__title { color: #fff; }
.sc-section__sub { margin: 14px 0 0; font-size: 17px; color: #64748b; }
.sc-section--dark .sc-section__sub { color: rgba(255, 255, 255, .65); }

/* ---------- single-row marquee ---------- */
.sc-marquee {
    position: relative; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.sc-marquee__track {
    display: flex; width: max-content; padding: 6px 0 18px;
    animation: sc-scroll max(24s, var(--sc-duration, 24s)) linear infinite;
    will-change: transform;
}
.sc-marquee--reverse .sc-marquee__track { animation-direction: reverse; }
.sc-marquee:hover .sc-marquee__track,
.sc-marquee:focus-within .sc-marquee__track { animation-play-state: paused; }
/* Every card carries its own right margin, so two identical sets loop seamlessly at exactly -50%. */
@keyframes sc-scroll { to { transform: translateX(-50%); } }

/* Few items: a loop of two or three cards just looks broken -- show them still, centred. */
.sc-marquee--static { -webkit-mask-image: none; mask-image: none; }
.sc-marquee--static .sc-marquee__track { width: auto; flex-wrap: wrap; justify-content: center; animation: none; padding-inline: 16px; }
.sc-marquee--static .sc-card { margin-bottom: 24px; }
.sc-marquee--static [aria-hidden="true"] { display: none; }

/* Touch screens and anyone who asked for less motion: a swipeable row instead of auto-scroll. */
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
    .sc-marquee:not(.sc-marquee--static) {
        overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
        scrollbar-width: none; -webkit-mask-image: none; mask-image: none;
    }
    .sc-marquee:not(.sc-marquee--static)::-webkit-scrollbar { display: none; }
    .sc-marquee:not(.sc-marquee--static) .sc-marquee__track { animation: none; padding-inline: 16px; }
    .sc-marquee:not(.sc-marquee--static) .sc-card { scroll-snap-align: center; }
    .sc-marquee [aria-hidden="true"] { display: none; }
}

/* ---------- cards ---------- */
.sc-card {
    flex: 0 0 auto; width: min(360px, 82vw); min-height: 270px; margin-right: 24px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
    padding: 26px; border-radius: 22px; text-align: left;
}
.sc-card--case {
    color: #fff; border: 1px solid rgba(255, 255, 255, .13);
    background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}
.sc-card--review {
    background: #fff; border: 1px solid #e6e9f5; box-shadow: 0 16px 36px rgba(15, 23, 42, .07);
}
.sc-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sc-logo {
    width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; background: #fff; object-fit: contain; padding: 4px;
}
.sc-initial {
    width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 19px; color: #fff; background: linear-gradient(135deg, #D033AE, #425CFE);
}
.sc-client { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .8); margin: 0 auto 0 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-metric {
    align-self: flex-start; display: inline-block; padding: 6px 14px; border-radius: 100px;
    font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(90deg, #D033AE 0%, #425CFE 100%);
    box-shadow: 0 0 22px rgba(208, 51, 174, .45);
}
.sc-card__title { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 800; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-card__text { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .68); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sc-card__link { font-size: 14px; font-weight: 800; color: #fff; text-decoration: none; }
.sc-card__link:hover { color: #ff8ae0; }

.sc-stars { color: #f5a623; letter-spacing: 2px; font-size: 16px; }
.sc-stars .off { color: #d5d9e6; }
.sc-quote { margin: 0; font-size: 15px; line-height: 1.65; color: #334155; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.sc-person { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid #edf0f7; }
.sc-avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; object-fit: cover; }
.sc-person .sc-initial { width: 44px; height: 44px; flex-basis: 44px; font-size: 17px; }
.sc-person__name { margin: 0; font-size: 15px; font-weight: 800; color: #0f172a; }
.sc-person__role { margin: 2px 0 0; font-size: 13px; color: #64748b; }
.sc-platform { margin-left: auto; padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 800; color: #425CFE; background: #eef1ff; white-space: nowrap; }

/* ---------- blog cards (homepage strip + /blog/) ---------- */
.sc-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 991px) { .sc-posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .sc-posts { grid-template-columns: 1fr; } }
.sc-post {
    display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 22px; background: #fff;
    border: 1px solid #e6e9f5; box-shadow: 0 14px 32px rgba(15, 23, 42, .06); text-decoration: none; color: inherit;
    transition: transform .25s ease, box-shadow .25s ease;
}
.sc-post:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(15, 23, 42, .12); color: inherit; }
.sc-post__img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: linear-gradient(135deg, #D033AE, #425CFE); }
.sc-post__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 26px; }
.sc-post__meta { font-size: 13px; color: #64748b; }
.sc-post__title { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 800; color: #0f172a; }
.sc-post__excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: #475569; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sc-post__more { margin-top: auto; font-size: 14px; font-weight: 800; color: #A81F8A; }

.sc-empty { text-align: center; padding: 60px 16px; color: #64748b; font-size: 17px; }
.sc-pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 44px; }
.sc-pager a { font-weight: 800; color: var(--aigence-base, #D032AF); text-decoration: none; }

/* ---------- a single blog post ---------- */
.sc-article { background: #fff; padding: 70px 0 100px; }
.sc-article__wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.sc-article__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 26px; font-size: 14px; color: #64748b; }
.sc-article__cover { width: 100%; border-radius: 22px; margin-bottom: 36px; aspect-ratio: 16 / 9; object-fit: cover; }
.sc-preview-banner { margin-bottom: 26px; padding: 12px 18px; border-radius: 12px; background: #fff7e6; color: #8a5a00; font-weight: 700; border: 1px solid #ffe2a8; }
.sc-prose { font-size: 18px; line-height: 1.8; color: #1e293b; overflow-wrap: anywhere; }
.sc-prose h1, .sc-prose h2, .sc-prose h3, .sc-prose h4 { margin: 1.8em 0 .6em; font-weight: 800; line-height: 1.25; color: #0f172a; }
.sc-prose h1 { font-size: 32px; } .sc-prose h2 { font-size: 28px; } .sc-prose h3 { font-size: 22px; }
.sc-prose p { margin: 0 0 1.25em; }
.sc-prose a { color: var(--aigence-base, #D032AF); text-decoration: underline; }
.sc-prose img { max-width: 100%; height: auto; border-radius: 14px; margin: 1.2em 0; }
.sc-prose ul, .sc-prose ol { padding-left: 1.4em; margin: 0 0 1.25em; }
.sc-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--aigence-base, #D032AF); color: #475569; font-style: italic; }
.sc-prose pre { padding: 16px 18px; border-radius: 12px; background: #0f172a; color: #e2e8f0; overflow-x: auto; font-size: 15px; }
.sc-prose code { font-size: .92em; }
.sc-related { margin-top: 70px; padding-top: 40px; border-top: 1px solid #e6e9f5; }
.sc-related h3 { font-size: 24px; font-weight: 800; margin-bottom: 26px; }
