/* ── Blog header (inline) ──────────────────────────────────────────── */
.blog-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.blog-header__text {
    display: flex;
    align-items: center;
    gap: 14px;
}

.blog-header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 93, 136, 0.08);
    color: #005D88;
    flex-shrink: 0;
}

.blog-header__title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1;
}

.blog-header__sub {
    font-size: 14px;
    color: #9ca3af;
    margin: 0 0 0 auto;
    line-height: 1.5;
    white-space: nowrap;
}

/* ── Blog grid ──────────────────────────────────────────────────────── */
.blog-listing {
    padding: 32px 0 80px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ── Blog card ──────────────────────────────────────────────────────── */
.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 20px rgba(0,0,0,.04);
    transition: transform .25s ease, box-shadow .25s ease;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
}

.blog-card__img {
    position: relative;
    width: 100%;
    padding-top: 52%; /* shorter ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #005D88 0%, #409FCA 100%);
}

.blog-card__img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.blog-card:hover .blog-card__img img {
    transform: scale(1.04);
}

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

.blog-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.blog-card__tag {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f7fc;
    color: #005D88;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.blog-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.35;
}

.blog-card__summary {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}

.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.blog-card__footer time {
    font-size: 12px;
    color: #9ca3af;
}

.blog-card__read {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #005D88;
    transition: gap .2s ease;
}

.blog-card:hover .blog-card__read {
    gap: 10px;
}

/* ── Article page ───────────────────────────────────────────────────── */
.site-blog-article {
    padding: 40px 0 80px;
}

.blog-article .container {
    max-width: 800px;
}

/* ── Article header ─────────────────────────────────────────────────── */
.ba-header {
    margin-bottom: 40px;
}

.ba-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #005D88;
    text-decoration: none;
    margin-bottom: 24px;
    transition: gap .2s ease;
}

.ba-back:hover {
    gap: 12px;
    color: #004a6e;
}

.ba-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.ba-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.25;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.ba-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #9ca3af;
}

.ba-meta__sep {
    color: #d1d5db;
}

/* ── Article content ────────────────────────────────────────────────── */
.ba-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.ba-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 40px 0 16px;
    letter-spacing: -0.3px;
}

.ba-content p {
    margin: 0 0 20px;
}

.ba-content ul,
.ba-content ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.ba-content li {
    margin-bottom: 10px;
}

.ba-content li strong {
    color: #1a1a2e;
}

.ba-content a {
    color: #005D88;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ba-content a:hover {
    color: #004a6e;
}

/* ── Full-width inline image ────────────────────────────────────────── */
.ba-content .ba-full-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin: 32px 0;
}

/* ── Hero image ─────────────────────────────────────────────────────── */
.ba-hero-img {
    margin: 0 -40px 36px;
    border-radius: 16px;
    overflow: hidden;
}

.ba-hero-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Lead paragraph ─────────────────────────────────────────────────── */
.ba-lead {
    margin-bottom: 32px;
}

.ba-lead p {
    font-size: 19px;
    line-height: 1.7;
    color: #1a1a2e;
    font-weight: 400;
}

/* ── Photo gallery (2-col) ──────────────────────────────────────────── */
.ba-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

.ba-gallery__item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
}

.ba-gallery__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.ba-gallery__item:hover img {
    transform: scale(1.03);
}

.ba-gallery__caption {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    color: #6b7280;
    background: #f9fafb;
    flex: 1;
}

/* ── Highlight block ────────────────────────────────────────────────── */
.ba-highlight {
    background: linear-gradient(135deg, #f0f7fc 0%, #e8f4fd 100%);
    border-left: 4px solid #005D88;
    border-radius: 0 12px 12px 0;
    padding: 24px 28px;
    margin: 32px 0;
}

.ba-highlight p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a2e;
    font-weight: 500;
}

/* ── CTA block ──────────────────────────────────────────────────────── */
.ba-cta {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 28px 32px;
    margin: 40px 0;
}

.ba-cta p {
    margin: 0;
    font-size: 17px;
    color: #e5e7eb;
}

.ba-cta a {
    color: #60b5e8;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ba-cta a:hover {
    color: #90ccf0;
}

/* ── Article footer ─────────────────────────────────────────────────── */
.ba-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.ba-back--bottom {
    margin-bottom: 0;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .blog-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .blog-header__text {
        flex-direction: column;
        gap: 8px;
    }

    .blog-header__title {
        font-size: 26px;
    }

    .blog-header__sub {
        text-align: left;
        max-width: none;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-card__body {
        padding: 20px;
    }

    .blog-card__title {
        font-size: 19px;
    }

    .ba-title {
        font-size: 26px;
    }

    .ba-hero-img {
        margin: 0 -16px 28px;
        border-radius: 12px;
    }

    .ba-gallery {
        grid-template-columns: 1fr;
    }

    .ba-gallery__item img {
        height: 200px;
    }

    .ba-highlight {
        padding: 20px 22px;
    }

    .ba-cta {
        padding: 22px 24px;
    }

    .ba-content h2 {
        font-size: 20px;
    }

    .blog-listing {
        padding: 20px 0 56px;
    }
}

@media (max-width: 480px) {
    .blog-header__title {
        font-size: 22px;
    }

    .ba-title {
        font-size: 22px;
    }

    .ba-lead p {
        font-size: 17px;
    }
}
