/* Article styling is consolidated in style.css. Kept for existing integrations. */
:root {
    --bs-body-color: #252830;
    --bs-link-color: #b53d0c;
    --bs-link-color-rgb: 181, 61, 12;
    --bs-link-hover-color: #8e2d08;
    --bs-link-hover-color-rgb: 142, 45, 8;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    overflow-wrap: anywhere;
}

/* Banner */
.page-hero {
    background: linear-gradient(110deg, #f9eee8, #fff7f0);
}

/* Blog cards and sidebar */
.post-card,
.recent-box {
    background: #fff7f0;
    border-color: #eee1d6;
}

.recent-box {
    background: #fff7f0;
    border-color: #eee1d6 !important;
}

.recent-item+.recent-item {
    border-top: 1px solid #eee1d6;
}

.recent-thumb {
    flex: 0 0 40%;
    width: 40%;
    max-width: 150px;
}

.recent-thumb img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
}

.recent-content {
    flex: 1;
    min-width: 0;
}

.recent-content time {
    font-size: 0.75rem;
}

.recent-title {
    font-size: 0.8rem;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.recent-title a {
    color: #252830;
}

.recent-title a:hover {
    color: #b53d0c;
}

.recent-content .read-more {
    color: #b53d0c;
    font-size: 0.7rem;
    text-decoration: none;
}

.recent-content .read-more:hover {
    color: #8e2d08;
    text-decoration: underline;
}

/* Images retain their original proportions. */
img {
    max-width: 100%;
    height: auto;
}

.image-panel {
    background: #f5ede6;
}

.post-card .post-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
}

/* Listing typography */
.post-title {
    font-size: 1.125rem;
    line-height: 1.4;
}

.post-description {
    font-size: 0.9375rem;
    line-height: 1.6;
}

@media (min-width: 992px) {
    .post-title {
        font-size: 1.25rem;
    }

    .post-description {
        font-size: 1rem;
    }
}

/* Article typography */
.article-title {
    font-size: clamp(1.2rem, 2.2vw, 2.25rem);
    line-height: 1.35;
}

.article-body {
    font-size: 1.0625rem;
    line-height: 1.6;
}

.article-body h2 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.4;
    margin: 2rem 0 1rem;
}

.article-body p {
    margin-bottom: 1.25rem;
}

/* Theme links */
.read-more {
    color: #b53d0c;
    text-decoration: none;
}

.read-more:hover {
    color: #8e2d08;
    text-decoration: underline;
}

a:focus-visible {
    outline: 3px solid #b53d0c;
    outline-offset: 4px;
}

/* Pagination */
.page-link {
    color: #b53d0c;
}

.page-link:hover {
    color: #8e2d08;
    background-color: #fff7f0;
}

.active>.page-link {
    background-color: #b53d0c;
    border-color: #b53d0c;
    color: #fff;
}

/* Blog banner */
.blog-banner {
    background: linear-gradient(110deg, #fcf0e8, #fff9f4);
}

.blog-eyebrow {
    color: #b53d0c;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.6;
}

.blog-eyebrow>span {
    flex: 0 0 32px;
    height: 3px;
    background: #b53d0c;
}

.blog-banner-title {
    color: #252830;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.blog-banner-description {
    max-width: 36rem;
    color: #68727b;
    font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
    line-height: 1.6;
}

.blog-monument {
    display: block;
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    object-position: bottom center;
    filter: opacity(0.5);
}

/* Breadcrumb */
.blog-breadcrumb {
    --bs-breadcrumb-divider: "›";
    background: #fff;
}

.blog-breadcrumb .breadcrumb {
    font-size: 0.8125rem;
    row-gap: 0.35rem;
}

.blog-breadcrumb a {
    color: #b53d0c;
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    color: #8e2d08;
    text-decoration: underline;
}

.blog-breadcrumb .breadcrumb-item.active {
    color: #68727b;
}

@media (max-width: 767.98px) {
    .blog-eyebrow {
        font-size: 0.6rem;
        letter-spacing: 0.07em;
    }

    .blog-eyebrow>span {
        flex-basis: 18px;
        height: 2px;
    }

    .blog-monument {
        margin-bottom: 12px;
    }
}

/* pagination css */

@import url("article.css");

/* Only pagination styling is added. */
#paginationNav {
    border-top: 1px solid #eee1d6;
    padding-top: 1.5rem;
}
#pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.6rem 0.9rem;
    border: 1px solid #eee1d6;
    border-radius: 6px;
    background: #fff;
    color: #b53d0c;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.25;
    transition: background-color 150ms ease, border-color 150ms ease;
}
#pagination .page-link:hover:not(:disabled) {
    background: #fff7f0;
    border-color: #b53d0c;
    color: #8e2d08;
}
#pagination .active > .page-link {
    background: #b53d0c;
    border-color: #b53d0c;
    color: #fff;
    font-weight: 700;
}
#pagination .page-link:focus-visible {
    outline: 3px solid #b53d0c;
    outline-offset: 3px;
    box-shadow: none;
}
#pagination .page-link:disabled {
    background: #f7f7f7;
    border-color: #e5e5e5;
    color: #717171;
    cursor: default;
}
#pagination .pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.25rem;
    color: #68727b;
}
/* Override Bootstrap display utilities on paginated card wrappers. */
#posts > [data-pagination-hidden] { display: none !important; }
@media (max-width: 575.98px) {
    #pagination { gap: 0.35rem !important; }
    #pagination .page-link { padding-inline: 0.65rem; }
}
@media (prefers-reduced-motion: reduce) {
    #pagination .page-link { transition: none; }
}