/* =========================================================
   blog.css  -  /blog and /post/{slug}
   Site palette: navy #0a1650, yellow #ffca05, the purple-to-navy
   button gradient (#63005d -> #01316f), light wash #f4f8fa.
   Roboto throughout, as everywhere else on this site.
   ========================================================= */

.blog-hero,
.blog-list,
.post-wrap,
.post-more,
.post-missing { font-family: "Roboto", Arial, sans-serif; }

.blog-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- hero band ---------- */
.blog-hero {
    background: linear-gradient(120deg, #0a1650 0%, #01316f 55%, #35135c 100%);
    color: #fff;
    padding: 64px 20px 56px;
    text-align: center;
}

.blog-hero-inner { max-width: 780px; margin: 0 auto; }

.blog-eyebrow {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #ffca05;
}

.blog-hero h1 {
    margin: 0 0 14px;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
}

.blog-hero-sub {
    margin: 0;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.65;
    color: #d7dced;
}

/* ---------- listing ---------- */
.blog-list { background: #f4f8fa; padding: 56px 0 72px; }

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

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(10, 22, 80, .08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(10, 22, 80, .16);
}

/* Fixed-height media box so a portrait upload cannot make one card
   twice the height of its neighbour. */
.blog-card-media {
    display: block;
    height: 220px;
    overflow: hidden;
    background: #e8eef4;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .5s ease;
}

.blog-card:hover .blog-card-media img { transform: scale(1.05); }

.blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #6a7385;
}

.blog-card-meta time i,
.post-meta time i,
.post-meta .post-author i { margin-right: 6px; }

.blog-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50rem;
    background: #eef2fb;
    color: #01316f;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
}

.blog-card-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.blog-card-title a {
    color: #0a1650;
    text-decoration: none;
}

.blog-card-title a:hover { color: #01316f; }

.blog-card-text {
    margin: 0 0 20px;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: #55607a;
}

/* Pushes the link to the bottom so every card's link sits on the
   same line regardless of how long the description runs. */
.blog-card-link {
    margin-top: auto;
    align-self: flex-start;
    font-size: 15px;
    font-weight: 600;
    color: #01316f;
    text-decoration: none;
}

.blog-card-link i { margin-left: 6px; transition: transform .3s ease; }
.blog-card-link:hover i { transform: translateX(4px); }

.blog-empty {
    padding: 70px 20px;
    text-align: center;
    font-size: 17px;
    color: #55607a;
}

/* ---------- pager ---------- */
.blog-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 46px;
}

.pager-btn {
    padding: 11px 24px;
    border-radius: 50rem;
    background: #fff;
    border: 1px solid #d4deea;
    color: #01316f;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
}

.pager-btn:hover { background: #0a1650; border-color: #0a1650; color: #fff; }
.pager-count { font-size: 14px; color: #6a7385; }

/* ---------- single post ---------- */
.post-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 42px 20px 60px;
}

.post-crumbs {
    font-size: 13px;
    color: #8790a3;
    margin-bottom: 18px;
}

.post-crumbs a { color: #01316f; text-decoration: none; }
.post-crumbs a:hover { text-decoration: underline; }
.post-crumbs span { margin: 0 7px; }

.post-title {
    margin: 0 0 16px;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    color: #0a1650;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #6a7385;
    padding-bottom: 22px;
    border-bottom: 1px solid #e6ebf2;
}

.post-banner { margin: 26px 0 30px; }

.post-banner img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

/* ---------- post body ----------
   These rules style whatever the editor produced in Summernote.
   Selectors stay element-level on purpose: the saved HTML carries no
   classes we control. */
.post-body {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.85;
    color: #364054;
}

.post-body p { margin: 0 0 20px; }

.post-body h2,
.post-body h3,
.post-body h4 {
    margin: 34px 0 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #0a1650;
}

.post-body h2 { font-size: 27px; }
.post-body h3 { font-size: 22px; }
.post-body h4 { font-size: 19px; }

.post-body a { color: #01316f; text-decoration: underline; }
.post-body a:hover { color: #63005d; }

.post-body ul,
.post-body ol { margin: 0 0 20px; padding-left: 24px; }
.post-body li { margin-bottom: 9px; }

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 12px 0;
}

.post-body blockquote {
    margin: 26px 0;
    padding: 6px 0 6px 22px;
    border-left: 4px solid #ffca05;
    font-size: 19px;
    font-style: italic;
    color: #0a1650;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 22px;
    font-size: 15px;
}

.post-body th,
.post-body td {
    border: 1px solid #e0e7ef;
    padding: 10px 13px;
    text-align: left;
}

.post-body th { background: #f4f8fa; font-weight: 600; color: #0a1650; }

.post-video {
    position: relative;
    padding-top: 56.25%;
    margin: 10px 0 30px;
    border-radius: 12px;
    overflow: hidden;
}

.post-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- buttons ---------- */
.post-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 38px;
    padding-top: 28px;
    border-top: 1px solid #e6ebf2;
}

.blog-btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 50rem;
    background: linear-gradient(to right, #63005d, #01316f);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: .4s;
}

.blog-btn:hover {
    background: linear-gradient(to right, #01316f, #63005d);
    color: #fff;
}

.blog-btn i { margin-right: 8px; }

.blog-btn.ghost {
    background: #ffca05;
    color: #0a1650;
}

.blog-btn.ghost:hover { background: #ffd94a; color: #0a1650; }

/* ---------- related ---------- */
.post-more { background: #f4f8fa; padding: 52px 0 66px; }

.post-more-title {
    margin: 0 0 28px;
    font-size: 26px;
    font-weight: 700;
    color: #0a1650;
}

.post-more .blog-card-media { height: 170px; }

/* ---------- 404 ---------- */
.post-missing {
    max-width: 620px;
    margin: 0 auto;
    padding: 90px 20px 110px;
    text-align: center;
}

.post-missing h1 { font-size: 32px; color: #0a1650; margin: 0 0 12px; }
.post-missing p { color: #55607a; margin: 0 0 26px; }

/* ---------- responsive ---------- */
@media (max-width: 992px) {
    .blog-hero h1 { font-size: 36px; }
    .post-title { font-size: 30px; }
}

@media (max-width: 640px) {
    .blog-hero { padding: 46px 18px 42px; }
    .blog-hero h1 { font-size: 29px; }
    .blog-hero-sub { font-size: 15px; }
    .blog-grid { grid-template-columns: 1fr; gap: 22px; }
    .blog-card-media { height: 200px; }
    .post-title { font-size: 25px; }
    .post-body { font-size: 16px; }
    .post-body h2 { font-size: 23px; }
    .post-body h3 { font-size: 20px; }
    .post-foot .blog-btn { flex: 1 1 100%; text-align: center; }
}

/* Someone who has asked the OS for less motion gets none of the
   card lift or the image zoom. */
@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card-media img,
    .blog-card-link i { transition: none; }
    .blog-card:hover { transform: none; }
    .blog-card:hover .blog-card-media img { transform: none; }
}
