/* Blog article + listing styles for the migrated (ex-WordPress) blog.
   Plain CSS (no SCSS build step) — loaded on /blog pages in addition to main16.css. */

/* ---------- Listing / index ---------- */
.blog-index-section {
    padding: 30px 0 60px;
}
.blog-index-section .blog-index-title {
    text-align: center;
    margin: 40px 0 30px;
}
/* h1 intentionally has no color / font-weight override here — it uses the
   .heading-underline pattern from combined19.css matching fees.php's heading
   (browser-default 700 weight, Bootstrap body colour). Setting explicit
   values here would drift from that reference. */
.blog-index-section .blog-index-title p {
    color: #6b7280;
    max-width: 680px;
    margin: 12px auto 0;
    font-size: 17px;
}
.blog-card .blog-img img {
    display: block;
}
/* Mobile: centre the single-column card and give it symmetric side margins
   so it doesn't appear flush to the container's left edge.
   !important overrides a legacy rule in main16.css (from assets/scss/layouts/blog.scss)
   that fires at max-width:519px with `.blog-card { width:100%; margin:10px 10px 20px }`
   and pins the card to the left. Same-specificity source-order can't win against
   `margin:10px` in a shorthand — need !important on the individual axes. */
@media (max-width: 767px) {
    .blog-index-section .row {
        display: flex;
        justify-content: center;
    }
    .blog-index-section .blog-card {
        width: 100% !important;
        max-width: 360px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
.blog-card .inner-blog-card .blog-heading p {
    margin-bottom: 8px;
}
.blog-card .blog-text p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    color: #4d4d60;
    text-decoration: none;
    font-weight: 600;
}
.blog-pagination a:hover {
    border-color: #e9531d;
    color: #e9531d;
}
.blog-pagination .current {
    background: #e9531d;
    border-color: #e9531d;
    color: #fff;
}

/* ---------- Single post ---------- */
.blog-detail-section {
    padding: 30px 0 20px;
}
.blog-breadcrumb {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}
.blog-breadcrumb a {
    color: #e9531d;
    text-decoration: none;
}
.blog-post-title {
    color: #111827;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}
.blog-post-meta {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 24px;
}
.blog-post-hero {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* Article body (WordPress content) */
.blog-article {
    color: #4d4d60;
    font-size: 17px;
    line-height: 1.7;
}
.blog-article p {
    margin-bottom: 18px;
}
.blog-article h2,
.blog-article h3,
.blog-article h4 {
    color: #e9531d;
    font-weight: 700;
    line-height: 1.3;
    margin: 32px 0 14px;
}
.blog-article h2 { font-size: 26px; }
.blog-article h3 { font-size: 22px; }
.blog-article h4 { font-size: 19px; }
.blog-article a {
    color: #e9531d;
    text-decoration: underline;
}
.blog-article ul,
.blog-article ol {
    margin: 0 0 18px 22px;
}
.blog-article ul li { list-style: disc; margin-bottom: 8px; }
.blog-article ol li { list-style: decimal; margin-bottom: 8px; }
.blog-article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.blog-article figure {
    margin: 22px 0;
}
.blog-article figure figcaption {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-top: 8px;
}
.blog-article blockquote {
    border-left: 4px solid #e9531d;
    margin: 22px 0;
    padding: 6px 0 6px 20px;
    color: #374151;
    font-style: italic;
}
.blog-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    display: block;
    overflow-x: auto;
}
.blog-article th,
.blog-article td {
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    text-align: left;
}

@media screen and (max-width: 700px) {
    .blog-article { font-size: 15px; }
    .blog-article h2 { font-size: 22px; }
    .blog-article h3 { font-size: 19px; }
}
