/* Blog Container */
.blog-hero .container,
.blog-listing .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog Hero */
.blog-hero { padding: 8px 0 40px; text-align: center; }
.blog-hero__title { font-size: 2.5rem; font-weight: 800; color: #05004E; margin: 0 0 24px; }

/* Breadcrumbs inside blog hero — smaller gap than features page */
.blog-hero .fp-breadcrumbs { margin-bottom: 32px; }

/* Blog Article Top (gradient area with breadcrumbs) */
.blog-article-top { padding-bottom: 24px; }
.blog-article-top .fp-breadcrumbs { margin-bottom: 0; }

/* Category Tabs */
.blog-hero .blog-tabs { margin-bottom: 0; }
.blog-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; justify-content: center; }
.blog-tabs__item {
    display: inline-block; padding: 8px 20px; border-radius: 20px;
    text-decoration: none; color: #6E7191; background: #f0f0f5;
    font-weight: 500; font-size: 0.9375rem; transition: all 0.2s;
}
.blog-tabs__item:hover { background: #e0e0ea; color: #05004E; }
.blog-tabs__item--active { background: #0027F3; color: #fff; }

/* Blog Grid */
.blog-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
    margin-bottom: 60px;
}

/* Blog Card */
.blog-card {
    display: flex; flex-direction: column; background: #fff;
    border-radius: 16px; overflow: hidden; text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }

.blog-card__cover { aspect-ratio: 16/9; overflow: hidden; background: #f0f0f5; }
.blog-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__cover-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

.blog-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }

.blog-card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 0.8125rem; }
.blog-card__category {
    color: #0027F3; font-weight: 600; background: rgba(0,39,243,0.08);
    padding: 2px 10px; border-radius: 12px;
}
.blog-card__date { color: #6E7191; }

.blog-card__title {
    font-size: 1.125rem; font-weight: 700; color: #05004E;
    margin: 0 0 8px; line-height: 1.4;
}
.blog-card__excerpt {
    font-size: 0.9375rem; color: #6E7191; line-height: 1.6;
    margin: 0 0 16px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card__link { color: #0027F3; font-weight: 600; font-size: 0.9375rem; margin-top: auto; }

/* Pagination */
.blog-pagination { display: flex; justify-content: center; gap: 8px; margin-bottom: 60px; }
.blog-pagination__item {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 8px; text-decoration: none;
    color: #05004E; font-weight: 500; background: #f0f0f5; transition: all 0.2s;
}
.blog-pagination__item:hover { background: #e0e0ea; }
.blog-pagination__item--active { background: #0027F3; color: #fff; }

/* Blog Article */
.blog-article { padding: 40px 0 80px; }
.blog-article__container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

.blog-article__cover {
    display: block; width: 100%; max-height: 400px;
    object-fit: cover; border-radius: 12px; margin: 24px 0;
}

.blog-article__back {
    display: inline-block; color: #0027F3; text-decoration: none;
    font-weight: 500; margin-bottom: 24px;
}
.blog-article__back:hover { text-decoration: underline; }

.blog-article__meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
    margin-bottom: 16px; font-size: 0.875rem; color: #6E7191;
}
.blog-article__meta-item { display: inline-flex; align-items: center; gap: 6px; }
.blog-article__meta-icon { flex-shrink: 0; opacity: .8; }
.blog-article__category {
    color: #0027F3; font-weight: 600; text-decoration: none;
    background: rgba(0,39,243,0.08); padding: 4px 12px; border-radius: 12px;
}
.blog-article__category:hover { background: rgba(0,39,243,0.15); }

.blog-article__title {
    font-size: 2.25rem; font-weight: 800; color: #05004E;
    margin: 0 0 32px; line-height: 1.3;
}

/* Article Body Prose */
.blog-article__body { font-size: 1.0625rem; line-height: 1.8; color: #2F2F2F; }
.blog-article__body h2 { font-size: 1.5rem; font-weight: 500; color: #05004E; margin: 32px 0 16px; }
.blog-article__body h3 { font-size: 1.25rem; font-weight: 700; color: #05004E; margin: 24px 0 12px; }
.blog-article__body p { margin: 0 0 16px; }
.blog-article__body ul, .blog-article__body ol { margin: 0 0 16px; padding-left: 24px; }
.blog-article__body li { margin-bottom: 8px; }
.blog-article__body img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.blog-article__body blockquote {
    border-left: 4px solid #0027F3; margin: 24px 0; padding: 16px 24px;
    background: #f8f8fc; border-radius: 0 8px 8px 0;
}
.blog-article__body a { color: #0027F3; }

/* YouTube Embed */
.blog-article__video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.blog-article__video iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Empty State */
.blog-empty { text-align: center; padding: 80px 0; color: #6E7191; font-size: 1.125rem; }

/* Responsive */
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .blog-hero { padding: 0 0 24px; }
    .blog-hero .fp-breadcrumbs { margin-bottom: 20px; }
    .blog-hero__title { font-size: 1.75rem; }
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .blog-article__cover { margin: 16px 0; }
    .blog-article__title { font-size: 1.5rem; }
    .blog-tabs { gap: 6px; }
    .blog-tabs__item { padding: 6px 14px; font-size: 0.875rem; }
}

/* Blog Article — Final CTA (brand-gradient, echoes /lp/ final CTA) */
.blog-cta {
    position: relative;
    padding: 88px 20px 100px;
    background:
        radial-gradient(60% 80% at 0% 0%, rgba(255,200,0,.16), transparent 60%),
        radial-gradient(50% 60% at 100% 100%, rgba(249,128,96,.16), transparent 60%),
        linear-gradient(180deg, #0689F7 0%, #0027F3 50%, #001BB8 100%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.blog-cta::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(60% 70% at 50% 40%, #000, transparent 80%);
    z-index: -1;
}
.blog-cta__inner { max-width: 760px; margin: 0 auto; text-align: center; position: relative; }
.blog-cta__title {
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.022em;
    margin: 0 0 16px;
}
.blog-cta__subtitle {
    font-size: 17px; line-height: 1.6;
    color: rgba(255,255,255,.85);
    margin: 0 auto 32px; max-width: 620px;
}
.blog-cta__form {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-bottom: 20px; text-align: left;
    padding: 24px; background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px; backdrop-filter: blur(10px); position: relative;
}
.blog-cta__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.blog-cta__input {
    width: 100%; box-sizing: border-box; padding: 15px 18px;
    border-radius: 12px; border: 1.5px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.10); color: #fff;
    font-size: 15.5px; font-family: inherit; font-weight: 500;
    transition: border-color .15s ease, background .15s ease;
}
.blog-cta__input::placeholder { color: rgba(255,255,255,.7); font-weight: 500; }
.blog-cta__input:focus {
    outline: none; border-color: #FFC800;
    background: rgba(255,255,255,.16);
    box-shadow: 0 0 0 4px rgba(255,200,0,.18);
}
.blog-cta__btn {
    grid-column: 1 / -1; padding: 17px 28px;
    background: linear-gradient(135deg, #FFC800 0%, #FFA800 100%);
    color: #05004E; font-size: 16px; font-weight: 700;
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
    letter-spacing: -.005em; border: none; border-radius: 14px; cursor: pointer;
    margin-top: 4px; transition: transform .15s ease, box-shadow .15s ease;
}
.blog-cta__btn:hover { box-shadow: 0 8px 16px -8px rgba(255,168,0,.35); filter: brightness(1.03); }
.blog-cta__btn:disabled { opacity: .6; cursor: progress; transform: none; }
.blog-cta__success {
    grid-column: 1 / -1; margin: 0; padding: 16px 20px;
    background: rgba(45,189,110,.18); border: 1px solid rgba(125,227,168,.5);
    border-radius: 12px; color: #fff; font-size: 15.5px;
    text-align: center; font-weight: 600;
}
.blog-cta__secondary { font-size: 15px; color: rgba(255,255,255,.85); margin: 0; }
.blog-cta__secondary a { color: #FFC800; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
@media (max-width: 640px) {
    .blog-cta { padding: 60px 16px 72px; }
    .blog-cta__title { font-size: 24px; }
    .blog-cta__form { grid-template-columns: 1fr; padding: 18px; }
}
