/* ============================================================
   Faaleoleo Theme – Blog / article page styles
   Applied only when extra_css: [blog.css] is set in frontmatter
   ============================================================ */

body.blog-page {
    font-family: Georgia, 'Times New Roman', serif;
    background: #ffffff;
    line-height: 1.8;
}

/* ============================================================
   Blog Index / Listing page
   ============================================================ */

.blog-hero-section {
    background: linear-gradient(135deg, #1a0533 0%, #2d1052 55%, #0f172a 100%) !important;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    border-bottom: none;
}

.blog-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c4b5fd;
    margin-bottom: 1rem;
}

.blog-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.blog-hero-sub {
    font-size: 1.05rem;
    color: #c4b5fd;
    max-width: 540px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}

.blog-filter-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tab {
    font-size: 13px;
    font-weight: 600;
    padding: 7px 20px;
    border-radius: 100px;
    border: 1.5px solid rgba(196, 181, 253, 0.45);
    background: transparent;
    color: #c4b5fd;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.filter-tab:hover {
    border-color: #c4b5fd;
    background: rgba(196, 181, 253, 0.12);
}

.filter-tab.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

.blog-posts-section {
    padding: 4rem 2rem;
    background: #f8fafc;
    border-bottom: none;
}

/* Card thumbnail — right-side panel */
.card-thumb {
    width: 200px;
    height: 130px;
    flex-shrink: 0;
    align-self: center;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.5rem;
    margin: 1rem 1rem 1rem 0;
}

.card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    box-sizing: border-box;
}

.card-thumb-fallback {
    width: auto;
    height: auto;
    max-width: 120px;
    max-height: 44px;
    opacity: 0.65;
}

/* Featured post */
.blog-featured {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0;
    margin-bottom: 2.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: box-shadow 0.3s ease;
}

.blog-featured .card-body {
    flex: 1;
    padding: 2rem 2.5rem 2.5rem;
}

.blog-featured:hover {
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.1);
}

.blog-featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.post-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 11px;
    border-radius: 100px;
}

.tag-solutions {
    background: #F2E8FF;
    color: #591F8E;
}

.tag-news {
    background: #CAD4DF;
    color: #3a4a5c;
}

.post-date {
    font-size: 13px;
    color: #94a3b8;
}

.featured-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-align: left;
}

.featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.featured-title a:hover {
    color: #7c3aed;
}

.featured-excerpt {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 680px;
}

.featured-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.read-time {
    font-size: 13px;
    color: #94a3b8;
}

.featured-read-btn {
    padding: 0.65rem 1.4rem !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
}

/* Post grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card .card-thumb {
    width: 120px;
    height: 100px;
    border-radius: 0.5rem;
}

.blog-card .card-body {
    flex: 1;
    padding: 1.5rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.blog-card:hover {
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.1);
    transform: translateY(-3px);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin: 0.25rem 0 0;
    text-align: left;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: #7c3aed;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.blog-card-readtime {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

.blog-card-link {
    font-size: 13px;
    font-weight: 600;
    color: #7c3aed;
    text-decoration: none;
    margin-top: auto;
    padding-top: 0.5rem;
}

.blog-card-link:hover {
    color: #6d28d9;
}

.blog-empty {
    color: #64748b;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .blog-hero-section {
        padding: 2rem 1.5rem 1.5rem;
    }

    .blog-posts-section {
        padding: 2.5rem 1.5rem;
    }

    .blog-featured {
        padding: 1.75rem;
    }

    .featured-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Cover ──────────────────────────────────────────────── */
.blog-cover {
    max-width: 760px;
    margin: 64px auto 0;
    padding: 0 24px;
}

.post-label {
    font-family: -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7c3aed;
    margin-bottom: 20px;
}

.blog-cover h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.blog-cover h1 em {
    font-style: italic;
    color: #7c3aed;
}

.byline {
    font-family: -apple-system, sans-serif;
    font-size: 13px;
    color: #6b7280;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.byline strong {
    color: #374151;
}

/* ── Article body ───────────────────────────────────────── */
.blog-body {
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 24px 96px;
}

.blog-body p {
    margin-bottom: 28px;
    color: #374151;
}

.blog-body p.lead {
    font-size: 1.15rem;
    color: #111827;
    line-height: 1.75;
    margin-bottom: 40px;
}

.blog-body h2 {
    font-family: -apple-system, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #111827;
    margin: 52px 0 16px;
}

/* ── Pull quote ─────────────────────────────────────────── */
.blog-body blockquote {
    margin: 44px -32px;
    padding: 32px 40px;
    border-left: 4px solid #7c3aed;
    background: #faf5ff;
}

.blog-body blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    color: #7c3aed;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 640px) {
    .blog-body blockquote {
        margin: 32px 0;
    }
}

/* ── Divider ────────────────────────────────────────────── */
.blog-body hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 48px 0;
}

/* ── Commitment list ────────────────────────────────────── */
.commitment-list {
    list-style: none;
    margin: 32px 0 44px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.commitment-list li {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 16px;
    align-items: start;
    font-size: 0.92rem;
}

.commitment-list li:last-child {
    border-bottom: none;
}

.commitment-list li:nth-child(odd) {
    background: #ffffff;
}

.commitment-list li:nth-child(even) {
    background: #fafafa;
}

.commitment-list .icon {
    font-size: 14px;
    color: #7c3aed;
    font-weight: 700;
    margin-top: 2px;
    font-family: -apple-system, sans-serif;
}

.commitment-list strong {
    font-family: -apple-system, sans-serif;
    font-size: 0.88rem;
    color: #111827;
    display: block;
    margin-bottom: 4px;
}

.commitment-list span {
    color: #6b7280;
    line-height: 1.6;
}

/* ── Highlight callout ──────────────────────────────────── */
.callout {
    background: #f0fdf9;
    border-left: 4px solid #06b6d4;
    padding: 24px 28px;
    margin: 40px 0;
    border-radius: 0 6px 6px 0;
}

.callout p {
    margin: 0;
    font-size: 0.95rem;
    color: #374151;
}

.callout p + p {
    margin-top: 12px;
}

.callout strong {
    color: #111827;
}

/* ── CTA block ──────────────────────────────────────────── */
.blog-cta-block {
    margin-top: 60px;
    padding: 44px 40px;
    background: #111827;
    border-radius: 10px;
    text-align: center;
}

.blog-cta-block p.label {
    font-family: -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 12px;
}

.blog-cta-block h2 {
    font-size: 1.55rem;
    color: #fff;
    margin-bottom: 12px;
    font-family: Georgia, serif;
    font-weight: 700;
    text-align: center;
}

.blog-cta-block p.sub {
    color: #9ca3af;
    font-family: -apple-system, sans-serif;
    font-size: 0.88rem;
    margin-bottom: 28px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.blog-cta-block a.btn {
    display: inline-block;
    background: #7c3aed;
    color: #fff;
    font-family: -apple-system, sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 32px;
    border-radius: 5px;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.blog-cta-block a.btn:hover {
    background: #6d28d9;
}

.blog-cta-block a.email {
    display: block;
    margin-top: 14px;
    color: #6b7280;
    font-family: -apple-system, sans-serif;
    font-size: 13px;
    text-decoration: none;
}

/* ── Blog footer ────────────────────────────────────────── */
.blog-footer {
    border-top: 1px solid #e5e7eb;
    padding: 28px 24px;
    text-align: center;
    font-family: -apple-system, sans-serif;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.9;
    background: white;
}

.blog-footer a {
    color: #9ca3af;
}
