/*
 * Blog styles: blog page template, category.php, author.php, single-post.php.
 * Loaded only on those templates (wb_blog_assets() in inc/blog-helpers.php).
 * Same styles as the approved HTML mock-ups (blog.html, blog-category.html, blog-single.html).
 */

/* ===== Shared ===== */
/* ---------- Hero (live dark banner, simplek12 layout) ---------- */
.blog-hero { padding-bottom: 60px; }
.blog-hero h1 { margin-bottom: 14px; }
.blog-hero .hero-lead { max-width: 660px; margin: 0 auto; font-size: 18px; line-height: 30px; color: #BEC3CC; }
.blog-hero .hero-lead + .hero-lead { margin-top: 0; }
.hero-cta-line { margin: 14px 0 0; font-size: 15px; color: #BEC3CC; }
.banner-text .hero-cta-line a { color: #5BA1FB; font-weight: 700; text-decoration: none; white-space: nowrap; }
.banner-text .hero-cta-line a:hover { color: #fff; }
.hero-cta-row { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; }
.hero-cta-row.text-start { align-items: flex-start; }
.hero-cta-row span { font-size: 14px; color: #BEC3CC; }

/* Category chips: text links, active = blue pill */
.blog-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 30px; }
.blog-chips a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 20px; font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 14px; color: #BEC3CC; white-space: nowrap; }
.blog-chips a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.blog-chips a.active { background: #5BA1FB; color: #fff; }

/* ---------- Post card (simplek12 card, Winboats colours) ---------- */
.wb-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #E5E5E5; border-radius: 10px; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.wb-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(19, 40, 72, 0.10); }
.wb-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: #F7F7F7; }
.wb-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.wb-card:hover .wb-card-img img { transform: scale(1.04); }
.wb-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.wb-tag { align-self: flex-start; display: inline-block; padding: 5px 12px; border-radius: 20px; background: rgba(91, 161, 251, 0.12); color: #2D75D1; font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 12px; line-height: 1.3; margin-bottom: 12px; }
.wb-card-title { font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 18px; line-height: 1.3; color: #132848; margin: 0 0 16px; transition: color .3s; }
.wb-card:hover .wb-card-title { color: #2D75D1; }
.wb-card-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; line-height: 20px; color: #8C96A6; }

/* iPad and up (641+): card rows stay 3 a row (client rule: iPad keeps desktop columns) */
@media (min-width: 641px) { .col-t-4 { flex: 0 0 auto; width: 33.33333%; } }

/* Breadcrumb to hero title: 32px, 24px on phones */
.blog-hero .breadcrumb-wrap,
.post-hero .breadcrumb-wrap { margin-bottom: 32px; }
@media (max-width: 640px) {
    .blog-hero .breadcrumb-wrap,
    .post-hero .breadcrumb-wrap { margin-bottom: 24px; }
}
.skip-link:focus { position: fixed !important; top: 10px; left: 10px; z-index: 1000; padding: 10px 16px; background: #fff; color: #132848; border-radius: 10px; }

/* Phones: a section's button moves under its cards (client rule) */
.show-phone { display: none; }
@media (max-width: 640px) { .hide-phone { display: none !important; } .show-phone { display: block; } .section-foot-btn { margin-top: 30px; } .section-foot-btn .cta-btn { width: 100%; } }

/* Section head: heading left, action right */
.wb-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px 30px; margin-bottom: 30px; }
.wb-section-head .h3 { margin: 0; }

/* ---------- Pagination ---------- */
.wb-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 45px; }
.wb-pager a,
.wb-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 15px; border: 1px solid #E5E5E5; border-radius: 10px; background: #fff; font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 15px; color: #132848; }
.wb-pager a:hover { border-color: #5BA1FB; color: #2D75D1; }
.wb-pager span[aria-current] { background: #2B3346; border-color: #2B3346; color: #fff; }
.wb-pager i { margin-left: 8px; font-size: 13px; }

/* ---------- Newsletter band ---------- */
.blog-newsletter-area { padding-top: 0; }
.wb-newsletter { display: grid; align-items: center; gap: 22px; padding: 35px 40px; background: #2B3346; border-radius: 10px; }
@media (min-width: 641px) { .wb-newsletter { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 30px; } }
@media (min-width: 1200px) { .wb-newsletter { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 40px; } }
.wb-newsletter .h3 { color: #fff; font-size: 26px; margin: 0 0 6px; }
.wb-newsletter-text p { margin: 0; color: #BEC3CC; }
.wb-newsletter-form { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.wb-newsletter-form input[type="email"] { flex: 1 1 150px; min-width: 0; height: 54px; border: 2px solid transparent; border-radius: 10px; padding: 0 18px; font-size: 16px; color: #222837; }
.wb-newsletter-form input[type="email"]:focus { border-color: #5BA1FB; }
.wb-newsletter-form input.is-invalid { border-color: #FF6B6B; }
.wb-newsletter-form .cta-btn { height: 54px; align-items: center; padding: 0 26px; }
@media (min-width: 641px) and (max-width: 991px) { .wb-newsletter { padding: 30px; } .wb-newsletter .h3 { font-size: 22px; } .wb-newsletter-form .cta-btn { padding: 0 18px; } }
.wb-newsletter-form .form-note { flex-basis: 100%; margin: 0; font-size: 13px; line-height: 20px; color: #8C96A6; }
.wb-newsletter-form .form-note.is-error { color: #FF8A8A; }
.wb-newsletter-form .form-note.is-done { color: #fff; font-size: 15px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 640px) {
    .blog-hero { padding-bottom: 45px; }
    .blog-hero .hero-lead { font-size: 16px; line-height: 26px; }
    /* chips: one line that scrolls sideways */
    .blog-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 25px -12px 0; padding: 0 12px 4px; scrollbar-width: none; }
    .blog-chips::-webkit-scrollbar { display: none; }
    .blog-chips li { flex: none; }
    .blog-chips a { height: 44px; }
    .hero-cta-row, .hero-cta-row.text-start { align-items: stretch; }
    .hero-cta-row .cta-btn { width: 100%; }
    .wb-section-head { justify-content: center; text-align: center; }
}
@media (max-width: 640px) {
    .wb-newsletter { padding: 28px 22px; text-align: center; }
    .wb-newsletter .h3 { font-size: 22px; }
    .wb-newsletter-form input[type="email"],
    .wb-newsletter-form .cta-btn { flex: 1 1 100%; width: 100%; }
}

/* ===== Blog page ===== */
/* ---------- Hero search ---------- */
.blog-hero-search { position: relative; max-width: 480px; margin: 28px auto 0; }
.blog-hero-search input { width: 100%; height: 54px; border: 2px solid transparent; border-radius: 10px; padding: 0 20px 0 50px; font-size: 16px; color: #222837; }
.blog-hero-search input:focus { border-color: #5BA1FB; }
.blog-hero-search .fa-search { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #8C96A6; }

/* ---------- Featured row ---------- */
.blog-featured-area { padding-bottom: 0; }
.blog-featured .wb-card-img { aspect-ratio: 2 / 1; }
.blog-featured .wb-card-body { padding: 25px 30px 28px; }
.blog-featured .wb-card-title { font-size: 28px; line-height: 1.25; }
.blog-featured-grid { display: grid; gap: 24px; }
@media (min-width: 641px) { .blog-featured-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; } }
@media (min-width: 992px) { .blog-featured-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; } }
.blog-side { display: flex; flex-direction: column; gap: 20px; height: 100%; }
.blog-side .wb-card { flex: 1; }
.blog-side .wb-card-body { padding: 22px 24px; justify-content: center; }
.blog-side .wb-card-title { font-size: 17px; margin-bottom: 10px; }
.blog-side .wb-card-meta { margin-top: 0; }

/* ---------- Latest articles ---------- */
.blog-sort-wrap { display: flex; align-items: center; gap: 12px; }
.blog-sort-wrap > span { font-size: 14px; color: #8C96A6; }
.blog-sort { width: 180px; }
.blog-sort .select-styled { height: 46px; padding: 8px 16px; font-size: 15px; border-radius: 10px; color: #132848; }
.blog-sort ul.select-options { padding: 12px 18px; border-radius: 10px; }
.blog-sort ul.select-options li { font-size: 15px; }
.blog-empty { padding: 40px 20px; margin-top: 10px; text-align: center; background: #FBFBFB; border-radius: 10px; }

@media (min-width: 641px) and (max-width: 991px) {
    .blog-featured .wb-card-img { aspect-ratio: 16 / 9; }
    .blog-featured .wb-card-body { padding: 20px 22px; }
    .blog-featured .wb-card-title { font-size: 22px; }
    .blog-side { gap: 14px; }
    .blog-side .wb-card-body { padding: 16px 18px; }
    .blog-side .wb-card-title { font-size: 16px; margin-bottom: 6px; }
    .blog-side .wb-tag { margin-bottom: 8px; }
}
@media (max-width: 640px) {
    .blog-featured .wb-card-img { aspect-ratio: 16 / 9; }
    .blog-featured .wb-card-body { padding: 20px; }
    .blog-featured .wb-card-title { font-size: 21px; }
    .blog-sort-wrap { width: 100%; justify-content: center; }
}

/* ===== Category page ===== */
.blog-count { color: #5BA1FB; font-weight: 700; }
.cat-posts-area { padding-bottom: 70px; }

/* ---------- Related Winboats tools (simplek12 "related courses") ---------- */
.cat-tools-area { background: #FBFBFB; }
.cat-tools-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.cat-tools-head .h2 { margin-bottom: 10px; }
.cat-tool .wb-card-body p { font-size: 15px; line-height: 24px; margin-bottom: 18px; }
.cat-tool .wb-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: #8C96A6; }
.cat-tool .link_text { font-size: 15px; color: #2D75D1; }
.cat-tool .link_text span::after { background: #2D75D1; }
.cat-tools-cta { margin-top: 40px; text-align: center; }
.cat-tools-cta p { margin: 12px 0 0; font-size: 14px; color: #8C96A6; }
.blog-newsletter-area.after-tools { padding-top: 70px; }

@media (max-width: 640px) {
    .cat-tools-cta .cta-btn { width: 100%; }
}

/* ===== Single post ===== */
/* overflow-x:hidden on .main-wrapper breaks position:sticky; clip keeps the crop without that */
.single-post .main-wrapper { overflow-x: clip; }

/* ---------- Post hero ---------- */
.post-hero { padding-bottom: 70px; }
.post-hero h1 { font-size: 46px; line-height: 1.15; margin-bottom: 18px; }
.post-hero .wb-tag { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; background: rgba(91, 161, 251, 0.15); color: #5BA1FB; border: 1px solid rgba(91, 161, 251, 0.45); margin-bottom: 18px; font-size: 13px; }
.post-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 15px; color: #BEC3CC; }
.post-hero-meta .author { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.post-hero-meta .author img { width: 36px; height: 36px; border-radius: 50%; background: #fff; object-fit: cover; }
.post-hero-dek { margin: 18px 0 0; font-size: 18px; line-height: 30px; color: #BEC3CC; }
.post-hero-grid { display: grid; gap: 30px; align-items: center; }
@media (min-width: 641px) { .post-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
@media (min-width: 992px) { .post-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; } }
.post-hero-img { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; }
/* iPad / small laptop: photo fills the copy column's height instead of floating in white space */
@media (min-width: 641px) and (max-width: 1199px) {
    .post-hero-grid { align-items: stretch; }
    .post-hero-media, .post-hero-img { height: 100%; }
    .post-hero-img { aspect-ratio: auto; min-height: 260px; }
}
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Body ---------- */
.post-body-area { padding: 60px 0 80px; }
.post-article { font-size: 17px; line-height: 30px; color: #535C6B; }
.post-article p { margin-bottom: 20px; }
.post-article .lead-in { font-weight: 700; color: #222837; }
.post-article h2 { font-size: 30px; line-height: 1.2; margin: 45px 0 15px; scroll-margin-top: 30px; }
.post-article h3 { font-size: 21px; margin: 30px 0 12px; }
.post-article a:not(.cta-btn) { color: #2D75D1; text-decoration: underline; text-underline-offset: 3px; }
.post-article > ul, .post-article > ol { margin: 0 0 25px 20px; }
.post-article > ul li { list-style: disc; margin: 6px 0; }
.post-article > ol li { list-style: decimal; margin: 6px 0; }
.post-article li::marker { color: #5BA1FB; }
.post-article strong { color: #222837; }
.post-steps { margin-top: 5px; margin-bottom: 25px; }
.post-step { height: 100%; padding: 20px 22px; background: #F2F7FE; border-radius: 10px; }
.post-step-num { display: block; font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 14px; color: #2D75D1; margin-bottom: 8px; }
.post-step-title { display: block; font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 18px; color: #132848; margin-bottom: 4px; }
.post-step p { margin: 0; font-size: 15px; line-height: 24px; }
.post-table { margin: 5px 0 25px; overflow-x: auto; border: 1px solid #E5E5E5; border-radius: 10px; }
.post-table table { width: 100%; font-size: 15px; }
.post-table th { background: #2B3346; color: #fff; font-family: 'Titillium Web', sans-serif; padding: 12px 18px; text-align: left; }
.post-table td { padding: 12px 18px; border-top: 1px solid #E5E5E5; }
.post-table td:first-child { font-weight: 700; color: #132848; white-space: nowrap; }
.post-note { padding: 20px 24px; margin: 25px 0; background: #F2F7FE; border-left: 3px solid #5BA1FB; border-radius: 0 10px 10px 0; font-size: 16px; line-height: 27px; }

/* Inline CTA (mid-article) */
.post-cta { display: grid; align-items: center; gap: 18px 30px; padding: 30px; margin: 35px 0; background: #2B3346; border-radius: 10px; }
@media (min-width: 641px) { .post-cta { grid-template-columns: minmax(0, 1fr) auto; } }
.post-cta .h4 { color: #fff; margin: 0 0 6px; font-size: 22px; }
.post-cta p { margin: 0; color: #BEC3CC; font-size: 15px; line-height: 24px; }


/* Continue learning box */
.post-continue { padding: 28px; margin-top: 40px; background: #FBFBFB; border: 1px solid #E5E5E5; border-radius: 14px; }
.post-continue .h4 { font-size: 20px; margin-bottom: 10px; }
.post-continue li { border-top: 1px solid #E5E5E5; }
.post-continue a { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 0; color: #132848; font-weight: 700; }
.post-continue a:hover { color: #2D75D1; }
.post-continue a i { color: #5BA1FB; transition: transform .3s; }
.post-continue a:hover i { transform: translateX(4px); }

/* Share */
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; }
.post-share-label { font-family: 'Titillium Web', sans-serif; font-weight: 700; color: #132848; margin-right: 6px; }
.post-share a,
.post-share button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #E5E5E5; background: #fff; color: #2B3346; }
.post-share a:hover,
.post-share button:hover { background: #5BA1FB; border-color: #5BA1FB; color: #fff; }
.post-share .copied { font-size: 14px; color: #2D75D1; }

/* ---------- Article + sidebar: side by side from 900px ---------- */
.post-layout { display: grid; gap: 40px; }
.post-main { min-width: 0; }
.post-side { display: none; }
@media (min-width: 900px) {
    .post-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 50px; }
    .post-side { display: block; }
    .post-toc-mobile { display: none; }
}
@media (min-width: 1200px) {
    .post-layout { grid-template-columns: minmax(0, 720px) 300px; gap: 80px; justify-content: center; }
}

/* ---------- Sidebar: TOC + CTA (sticky) ---------- */
.post-aside { position: sticky; top: 30px; }
.post-toc { padding: 20px 22px; background: #fff; border: 1px solid #E5E5E5; border-radius: 14px; }
.post-toc-label { display: block; padding-bottom: 8px; font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #8C96A6; }
.post-toc li { border-top: 1px solid #F0F0F0; }
.post-toc a { display: block; padding: 9px 0; font-size: 15px; line-height: 22px; color: #2B3346; }
.post-toc a:hover,
.post-toc a.active { color: #2D75D1; }
.post-toc a.active { font-weight: 700; }
.post-aside-cta { margin-top: 20px; padding: 26px; background: #2B3346; border-radius: 14px; }
.post-aside-cta .h4 { color: #fff; font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
.post-aside-cta p { color: #BEC3CC; font-size: 15px; line-height: 24px; margin-bottom: 18px; }
.post-aside-cta .cta-btn { width: 100%; }

/* Mobile TOC */
.post-toc-mobile { margin-bottom: 30px; background: #fff; border: 1px solid #E5E5E5; border-radius: 14px; }
.post-toc-mobile summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px; cursor: pointer; list-style: none; font-family: 'Titillium Web', sans-serif; font-weight: 700; color: #132848; }
.post-toc-mobile summary::-webkit-details-marker { display: none; }
.post-toc-mobile summary small { font-family: 'Lato', sans-serif; font-weight: 400; color: #8C96A6; }
.post-toc-mobile summary i { margin-left: auto; color: #5BA1FB; transition: transform .3s; }
.post-toc-mobile[open] summary i { transform: rotate(180deg); }
.post-toc-mobile ul { padding: 0 20px 10px; }
.post-toc-mobile li { border-top: 1px solid #F0F0F0; }
.post-toc-mobile a { display: block; padding: 11px 0; color: #2B3346; }

/* ---------- More from category ---------- */
.post-more-area { background: #FBFBFB; }

@media (max-width: 991px) {
    .post-hero h1 { font-size: 32px; }
}
@media (max-width: 640px) {
    .post-hero h1 { font-size: 30px; }
    .post-hero-dek { font-size: 16px; line-height: 27px; }
    .post-body-area { padding: 35px 0 60px; }
    .post-article { font-size: 16px; line-height: 28px; }
    .post-article h2 { font-size: 25px; margin-top: 38px; }
    .post-cta { padding: 25px 22px; text-align: center; }
    .post-cta .cta-btn { width: 100%; }
    .post-continue { padding: 22px 20px; }
    .post-share { justify-content: center; }
    .post-share-label { flex-basis: 100%; text-align: center; margin: 0 0 4px; }
    .post-more-area .wb-section-head .cta-btn { width: 100%; }
}
/* the theme centres .banner-text at <=575px: centre the rest of the post hero with it */
@media (max-width: 575px) {
    .post-hero .breadcrumb-wrap { text-align: center; }
    .post-hero-meta,
    .post-hero .hero-cta-row.text-start { justify-content: center; }
}

/* ===== WordPress additions ===== */

/* Draft badge (editors only see drafts in the listings) */
.wb-card-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.wb-card-tags .wb-tag { margin-bottom: 0; }
.wb-draft-badge { display: inline-block; padding: 5px 10px; border-radius: 20px; background: #FFF4D6; color: #8A5A00; font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 11px; line-height: 1.3; text-transform: uppercase; letter-spacing: .5px; }

/* Rank Math breadcrumb inside the centred blog hero */
.blog-hero .breadcrumb-wrap p { margin: 0; }

/* paginate_links() markup */
.wb-pager .page-numbers.dots { border: 0; background: transparent; min-width: 20px; padding: 0 4px; }
.wb-pager .page-numbers.current { background: #2B3346; border-color: #2B3346; color: #fff; }

/* Gravity Forms newsletter (form 1) inside the band */
.wb-newsletter-form { display: block; }
.wb-newsletter-form .gform_wrapper { margin: 0; }
/* GF CSS is disabled site-wide (gform_disable_css): hide the honeypot + hidden inputs ourselves */
.wb-newsletter-form .gform_validation_container,
.wb-newsletter-form .gform_hidden,
.wb-newsletter-form .gform_anchor,
.wb-newsletter-form input[type="hidden"] { display: none !important; }
.wb-newsletter-form form { position: relative; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.wb-newsletter-form .gform-body { flex: 1 1 150px; min-width: 0; }
.wb-newsletter-form .gform_fields { display: block !important; margin: 0 !important; }
.wb-newsletter-form .gform_fields > div { padding: 0 !important; margin: 0 !important; }
.wb-newsletter-form .gfield_label,
.wb-newsletter-form .gform_validation_errors,
.wb-newsletter-form .gform_required_legend { display: none !important; }
.wb-newsletter-form input[type="email"] { width: 100%; height: 54px; border: 2px solid transparent; border-radius: 10px; padding: 0 18px; font-size: 16px; color: #222837; background: #fff; }
.wb-newsletter-form input[type="email"]:focus { border-color: #5BA1FB; }
.wb-newsletter-form .gfield_error input[type="email"] { border-color: #FF6B6B; }
.wb-newsletter-form .gfield_validation_message { margin-top: 6px; font-size: 13px; color: #FF8A8A; }
.wb-newsletter-form .gform_footer { margin: 0 !important; padding: 0 !important; }
.wb-newsletter-form .gform_button,
.wb-newsletter-form .gform_footer button { height: 54px; padding: 0 26px; border: 0; border-radius: 10px; background: #5BA1FB; color: #fff; font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .3s; }
.wb-newsletter-form .gform_button:hover,
.wb-newsletter-form .gform_footer button:hover { background: #2D75D1; }
.wb-newsletter-form .gform_confirmation_message { color: #fff; font-size: 15px; }
.wb-newsletter-form .form-note { margin: 8px 0 0; font-size: 13px; line-height: 20px; color: #8C96A6; }
@media (max-width: 640px) {
    .wb-newsletter-form .gform-body,
    .wb-newsletter-form .gform_footer,
    .wb-newsletter-form .gform_button { flex: 1 1 100%; width: 100%; }
}

/* Tools cards on category pages (no image) */
.cat-tool { border-top: 3px solid #5BA1FB; }

/* Gutenberg content inside the article */
.post-article .wp-block-list { margin: 0 0 25px 20px; }
.post-article ul.wp-block-list li { list-style: disc; margin: 6px 0; }
.post-article ol.wp-block-list li { list-style: decimal; margin: 6px 0; }
.post-article .wp-block-table { margin: 5px 0 25px; overflow-x: auto; border: 1px solid #E5E5E5; border-radius: 10px; }
.post-article .wp-block-table table { width: 100%; font-size: 15px; border-collapse: collapse; }
.post-article .wp-block-table th { background: #2B3346; color: #fff; font-family: 'Titillium Web', sans-serif; padding: 12px 18px; text-align: left; border: 0; }
.post-article .wp-block-table td { padding: 12px 18px; border: 0; border-top: 1px solid #E5E5E5; }
.post-article .wp-block-table td:first-child { font-weight: 700; color: #132848; }
.post-article .wp-block-table thead { border: 0; }
.post-article figure { margin: 0 0 25px; }
.post-article img { border-radius: 10px; height: auto; }
.post-continue .h4.no-toc { margin-top: 0; font-size: 20px; }

/* Author box (full container width under the article) */
.wb-author-box { display: flex; gap: 28px; align-items: center; margin-top: 50px; padding: 30px; background: #FBFBFB; border: 1px solid #E5E5E5; border-radius: 14px; }
.wb-author-avatar { flex: none; }
.wb-author-avatar img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.wb-author-label { display: block; font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #8C96A6; margin-bottom: 4px; }
.wb-author-info .h3 { margin-bottom: 8px; }
.wb-author-info .h3 a { color: #132848; }
.wb-author-info .h3 a:hover { color: #2D75D1; }
.wb-author-info p { margin-bottom: 12px; color: #535C6B; }
.wb-author-info .link_text { font-size: 16px; }
@media (max-width: 640px) {
    .wb-author-box { flex-direction: column; text-align: center; padding: 26px 20px; }
}

/* Post hero author link + avatar */
.post-hero-meta a.author { color: #fff; }
.post-hero-meta a.author:hover { color: #5BA1FB; }
.post-hero-meta .author img { width: 36px; height: 36px; border-radius: 50%; }

/* Designed featured images (2:1, with text on them) are never cropped */
.wb-card-img,
.blog-featured .wb-card-img { aspect-ratio: 2 / 1; }
.post-hero-img { aspect-ratio: auto; height: auto; }
.post-hero-img img { width: 100%; height: auto; object-fit: contain; }
@media (min-width: 641px) and (max-width: 1199px) {
    .post-hero-grid { align-items: center; }
    .post-hero-media,
    .post-hero-img { height: auto; }
    .post-hero-img { min-height: 0; }
}
@media (max-width: 640px) {
    .blog-featured .wb-card-img { aspect-ratio: 2 / 1; }
}

/* Client review (video 1:15:44-1:16:03): post hero = title, author line, excerpt only; category linked at the bottom */
.post-hero h1 { margin-bottom: 16px; }
.post-filed { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; }
.post-filed-label { font-family: 'Titillium Web', sans-serif; font-weight: 700; color: #132848; }
.post-filed .wb-tag { margin-bottom: 0; padding: 8px 14px; font-size: 13px; }
.post-filed .wb-tag:hover { background: #5BA1FB; color: #fff; }
.post-filed + .post-share { margin-top: 18px; }
@media (max-width: 640px) {
    .post-filed { justify-content: center; }
}

/* Client review: "in mobile move everything upper more" (phones only, all blog heroes) */
@media (max-width: 640px) {
    .blog-hero,
    .post-hero { padding-top: 96px; padding-bottom: 32px; }   /* breadcrumb 10px under the header */
    .blog-hero .breadcrumb-wrap,
    .post-hero .breadcrumb-wrap { margin-bottom: 16px; }
    .blog-hero h1 { margin-bottom: 10px; }
    .post-hero h1 { margin-bottom: 12px; }
    .post-hero-dek { margin-top: 12px; }
    .post-hero-grid { gap: 20px; }
    .post-body-area { padding-top: 24px; }
    .post-toc-mobile { margin-bottom: 24px; }
    .post-hero-meta { gap: 6px 12px; font-size: 14px; }
    .post-hero-meta .author { gap: 8px; }
    .post-hero-meta .author img { width: 30px; height: 30px; }
}

/* Author page hero */
.author-hero-avatar img { width: 110px; height: 110px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.15); margin: 0 auto 18px; object-fit: cover; }
.author-hero .hero-lead + .hero-lead { margin-top: 8px; }
