/* Formatting for blog article bodies produced by the blog_format filter. */
/* Article layout */
.blog-article-section {
    padding: 3.5rem 0 4rem;
    background: #fff;
}

.blog-article {
    font-family: var(--font);
}

.blog-hero-img {
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.blog-hero-img img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

/* Body Text */
.blog-body {
    font-size: 1.08rem;
    line-height: 2;
    color: #3a3a3a;
    font-family: var(--font);
}

.blog-body .blog-p {
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}

/* Bold / accent */
.blog-body .blog-accent {
    color: var(--primary, #eb711d);
    font-weight: 700;
}

/* Headings */
.blog-body .blog-h2 {
    color: var(--secondary, #023e58);
    font-weight: 800;
    font-size: 1.55rem;
    margin: 2.8rem 0 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--primary, #eb711d);
    font-family: var(--font);
    line-height: 1.3;
}

.blog-body .blog-h2:first-child {
    margin-top: 0;
}

.blog-body .blog-h3 {
    color: var(--secondary, #023e58);
    font-weight: 700;
    font-size: 1.25rem;
    margin: 2.2rem 0 1rem;
    padding-left: 14px;
    border-left: 4px solid var(--primary, #eb711d);
    font-family: var(--font);
    line-height: 1.35;
}

/* Unordered List */
.blog-body .blog-ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.8rem 0;
}
.blog-body .blog-ul li {
    position: relative;
    padding: 0.55rem 0 0.55rem 2rem;
    border-bottom: 1px solid #f0f2f5;
    font-size: 1.02rem;
}
.blog-body .blog-ul li:last-child { border-bottom: none; }
.blog-body .blog-ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--primary, #eb711d);
    border-radius: 50%;
}

/* Ordered List */
.blog-body .blog-ol {
    list-style: none;
    padding: 0;
    margin: 0 0 1.8rem 0;
    counter-reset: blog-counter;
}
.blog-body .blog-ol li {
    position: relative;
    padding: 0.6rem 0 0.6rem 2.8rem;
    border-bottom: 1px solid #f0f2f5;
    font-size: 1.02rem;
    counter-increment: blog-counter;
}
.blog-body .blog-ol li:last-child { border-bottom: none; }
.blog-body .blog-ol li::before {
    content: counter(blog-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary, #eb711d), #d66318);
    border-radius: 50%;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
}

/* Blockquote */
.blog-body .blog-quote {
    margin: 2rem 0;
    padding: 1.4rem 1.8rem;
    background: linear-gradient(135deg, rgba(2,62,88,0.04) 0%, rgba(235,113,29,0.04) 100%);
    border-left: 4px solid var(--primary, #eb711d);
    border-radius: 0;
    font-style: italic;
    color: #444;
}
.blog-body .blog-quote p {
    margin: 0.3rem 0;
}

/* Gallery */
.blog-gallery {
    margin-top: 2.5rem;
}
.blog-gallery-fig {
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    background: #fff;
}
.blog-gallery-fig img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s;
}
.blog-gallery-fig:hover img { transform: scale(1.03); }
.blog-gallery-fig figcaption {
    padding: 0.8rem 1rem;
    color: #666;
    font-size: 0.88rem;
    font-style: italic;
    background: #f8f9fa;
}

/* standalone h3 outside .blog-body (gallery heading) */
.blog-article .blog-h3 {
    color: var(--secondary, #023e58);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

@media (max-width: 768px) {
    .blog-body { font-size: 1rem; line-height: 1.85; }
    .blog-body .blog-h2 { font-size: 1.35rem; margin: 2rem 0 1rem; }
    .blog-body .blog-h3 { font-size: 1.15rem; }
}
