/* Public church blog — jenfrankfarms.com/blog listing layout (hero kept separate) */

.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.section-title::before,
.section-title::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 2px;
    left: 0;
    background: var(--bs-primary, #fbfe06);
    z-index: -1;
}

.section-title::before {
    top: 5px;
}

.section-title::after {
    bottom: 6px;
}

.section-title.text-center::before,
.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
}

.section-title.text-primary {
    color: var(--ag-navy, #1A2B5C) !important;
}

.blog-search-wrap {
    position: relative;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.blog-search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
}

.blog-search-form input {
    border: 1px solid rgba(26, 43, 92, 0.15);
    padding: 0.85rem 1rem;
    font: inherit;
    background: #fff;
    border-radius: 0;
}

.blog-search-form input:focus {
    outline: none;
    border-color: var(--ag-navy, #1A2B5C);
    box-shadow: 0 0 0 3px rgba(26, 43, 92, 0.08);
}

.blog-search-hint {
    font-size: 0.85rem;
    color: #64748b;
}

.blog-search-hint a {
    color: var(--ag-navy, #1A2B5C);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-suggest-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 30;
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    background: #fff;
    border: 1px solid rgba(26, 43, 92, 0.12);
    box-shadow: 0 16px 30px rgba(26, 43, 92, 0.12);
}

.blog-suggest-list a {
    display: grid;
    gap: 0.15rem;
    padding: 0.7rem 1rem;
    text-decoration: none;
    color: inherit;
}

.blog-suggest-list a:hover {
    background: rgba(26, 43, 92, 0.06);
}

.blog-suggest-list span {
    font-size: 0.78rem;
    color: #64748b;
}

.blog-empty-state {
    color: #64748b;
    padding: 2rem 0;
}

.blog-card {
    background: #fff;
    border: 1px solid rgba(26, 43, 92, 0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(26, 43, 92, 0.12);
}

.blog-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8ecf4;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-media img {
    transform: scale(1.04);
}

.blog-card-body {
    padding: 1.35rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--ag-navy, #1A2B5C);
}

.blog-card-excerpt {
    color: #475569;
    flex: 1;
    margin-bottom: 1rem;
}

.blog-card .btn-secondary {
    align-self: flex-start;
    background-color: var(--bs-primary, #fbfe06);
    border-color: var(--bs-primary, #fbfe06);
    color: var(--ag-btn-text, #1A2B5C);
    font-weight: 600;
}

.blog-card .btn-secondary:hover,
.blog-card .btn-secondary:focus {
    background-color: var(--ag-btn-hover-bg, #1A2B5C);
    border-color: var(--ag-btn-hover-bg, #1A2B5C);
    color: var(--ag-btn-hover-text, #fbfe06);
}

.blog-index-pager {
    display: flex;
    justify-content: center;
    width: 100%;
}

.surface-panel {
    background: #fff;
    border: 1px solid rgba(26, 43, 92, 0.1);
    padding: 1.15rem 1.2rem;
}

.sticky-panel {
    position: sticky;
    top: 6rem;
}

.blog-side-title {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.85rem;
}

.blog-mini-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.blog-mini-list a {
    display: block;
    color: #1A2B5C;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.35;
}

.blog-mini-list a:hover {
    color: var(--ag-navy-light, #2A4078);
}

.blog-mini-list span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: #64748b;
}

/* Single post */
.hero-header--blog-post .display-1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.hero-header--blog-post .breadcrumb-item {
    max-width: 28rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ag-blog-article {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 35%);
}

.ag-blog-article__card {
    background: #fff;
    padding: clamp(1.5rem, 3vw, 2.75rem);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(26, 43, 92, 0.06);
}

.ag-blog-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(26, 43, 92, 0.08);
    color: #1A2B5C;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ag-blog-article__title {
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    line-height: 1.25;
    color: #0f172a;
    font-weight: 700;
}

.ag-blog-meta {
    color: #64748b;
    font-size: 0.95rem;
}

.ag-blog-article__figure {
    margin: 0;
    overflow: hidden;
    background: #e2e8f0;
}

.ag-blog-article__figure img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.ag-blog-article__body {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #334155;
}

.ag-blog-article__body > *:first-child {
    margin-top: 0;
}

.ag-blog-article__body p {
    margin-bottom: 1.25rem;
}

.ag-blog-article__body h2,
.ag-blog-article__body h3,
.ag-blog-article__body h4 {
    color: #1A2B5C;
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
    font-weight: 700;
}

.ag-blog-article__body ul,
.ag-blog-article__body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.35rem;
}

.ag-blog-article__body li {
    margin-bottom: 0.4rem;
}

.ag-blog-article__body a {
    color: #1A2B5C;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ag-blog-article__body em,
.ag-blog-article__body blockquote {
    color: #1A2B5C;
}

.ag-blog-article__body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--bs-primary, #fbfe06);
    background: rgba(26, 43, 92, 0.04);
    font-style: italic;
}

.ag-blog-article__body img {
    max-width: 100%;
    height: auto;
    margin: 1.25rem 0;
}

.ag-blog-article__foot {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Article reading layout — jenfrankfarms.com/blog/{slug} pattern */
.blog-article-cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.blog-article-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #334155;
}

.blog-article-body > *:first-child {
    margin-top: 0;
}

.blog-article-body p {
    margin-bottom: 0;
}

.blog-article-body p + p {
    margin-top: 1rem;
}

.blog-article-body h2,
.blog-article-body h3,
.blog-article-body h4 {
    color: #1A2B5C;
    scroll-margin-top: 5.5rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.blog-article-body ul,
.blog-article-body ol {
    margin: 1rem 0 1.25rem;
    padding-left: 1.35rem;
}

.blog-article-body li {
    margin-bottom: 0.4rem;
}

.blog-article-body a {
    color: #1A2B5C;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-article-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--bs-primary, #fbfe06);
    background: rgba(26, 43, 92, 0.04);
    font-style: italic;
    color: #1A2B5C;
}

.blog-article-body img {
    max-width: 100%;
    height: auto;
    margin: 1.25rem 0;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.blog-tags a {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(26, 43, 92, 0.25);
    color: #1A2B5C;
    padding: 0.2rem 0.45rem;
    text-decoration: none;
    background: rgba(26, 43, 92, 0.04);
}

.blog-tags a:hover {
    background: rgba(26, 43, 92, 0.1);
    color: #1A2B5C;
}

.blog-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.blog-toc a {
    color: #1A2B5C;
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.35;
}

.blog-toc a:hover {
    color: var(--ag-navy-light, #2A4078);
}

.blog-toc .toc-level-3 {
    padding-left: 0.85rem;
}

.blog-share {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
}

.sticky-share {
    position: sticky;
    top: 6.5rem;
}

.share-btn {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(26, 43, 92, 0.15);
    background: #fff;
    color: #1A2B5C;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.share-btn:hover,
.share-btn.copied {
    background: #1A2B5C;
    border-color: #1A2B5C;
    color: #fff;
}

.blog-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border-top: 1px solid rgba(26, 43, 92, 0.1);
    padding-top: 1.25rem;
}

.blog-pager a {
    display: grid;
    gap: 0.25rem;
    text-decoration: none;
    color: inherit;
    padding: 0.75rem;
    border: 1px solid rgba(26, 43, 92, 0.1);
    background: #fff;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.blog-pager a:hover {
    border-color: rgba(26, 43, 92, 0.45);
    transform: translateY(-2px);
    color: inherit;
}

.blog-pager span {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}

.blog-pager strong {
    font-size: 0.95rem;
    line-height: 1.35;
    color: #0f172a;
}

@media (max-width: 991.98px) {
    .blog-share {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        margin-top: 0.5rem;
    }

    .sticky-share,
    .sticky-panel {
        position: static;
    }

    .blog-pager {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .blog-search-form {
        grid-template-columns: 1fr;
    }

    .ag-blog-article__card {
        padding: 1.25rem;
        box-shadow: none;
        border: 0;
        background: transparent;
    }

    .ag-blog-article__foot .btn {
        width: 100%;
    }

    .ag-blog-article__foot .ms-2 {
        margin-left: 0 !important;
    }
}
