/* ==========================================================================
   Probay Blog — extras on top of the main site's /assets/css/style.css.
   Only what WordPress content needs; colours and fonts come from the site's tokens.
   ========================================================================== */

/* ---------- Listing hero + search ---------- */
.blog-hero .container { grid-template-columns: minmax(0, 1fr); max-width: var(--container); }
.blog-hero .hero-lead { max-width: 720px; }
.blog-search { display: flex; gap: 10px; max-width: 560px; margin-top: 8px; }
.blog-search input { flex: 1; min-width: 0; padding: 11px 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; }
.blog-search input::placeholder { color: #a9bbdd; }
.blog-search input:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, .12); }

/* ---------- Topic chips ---------- */
.topic-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.topic-chips a { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: .88rem; font-weight: 600; }
.topic-chips a:hover { border-color: var(--primary); color: var(--primary); }
.topic-chips a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Post cards (built on .guide-card) ---------- */
.blog-list { padding-top: 56px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { overflow: hidden; }
.post-card h3 { font-size: 1.12rem; }
.post-card p { color: var(--muted); font-size: .93rem; }
.post-card-img { display: block; margin: -26px -26px 20px; aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card-img img { transform: scale(1.03); }
.post-card-ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); }
.post-card-ph img { width: auto; height: 78%; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .35)); }
.post-card-meta { font-size: .8rem; color: var(--muted); margin: auto 0 10px; }
.post-card .more { margin-top: 0; }
.blog-empty { text-align: center; padding: 40px 0; }
.related-posts h2 { margin-bottom: 28px; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { min-width: 42px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text); font-weight: 600; text-align: center; }
.pagination a.page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .page-numbers.dots { border: 0; background: none; }

/* ---------- Single post hero photo ---------- */
.hero-photo { width: 100%; max-width: 420px; height: auto; justify-self: center; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ---------- Post body: WordPress content inside .prose ---------- */
.entry-content > * + h2 { margin-top: 2em; padding-top: 1.6em; border-top: 1px solid var(--line); }
.entry-content h3 { font-size: 1.22rem; }
.entry-content h4 { margin-top: 1.4em; }
.entry-content ul:not(.bullets), .entry-content ol:not(.bullets) { margin: 0 0 1.3em; padding-left: 1.4em; color: #3a4a63; }
.entry-content ul:not(.bullets) { list-style: disc; }
.entry-content ol:not(.bullets) { list-style: decimal; }
.entry-content li { margin-bottom: .45em; padding-left: .2em; }
.entry-content li::marker { color: var(--primary); font-weight: 700; }
.entry-content li > ul, .entry-content li > ol { margin: .45em 0 0; }
.entry-content a:not(.btn):not(.wp-block-button__link) { text-decoration: underline; text-decoration-color: rgba(40, 89, 151, .35); text-underline-offset: 3px; }
.entry-content a:not(.btn):not(.wp-block-button__link):hover { text-decoration-color: currentColor; }
.entry-content strong { color: var(--ink); }
.entry-content img { height: auto; border-radius: var(--radius); }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption, .entry-content .wp-element-caption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 10px; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin: .3em 1.6em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.6em; max-width: 50%; }
.entry-content::after { content: ""; display: table; clear: both; }

.entry-content blockquote, .entry-content .wp-block-quote { margin: 1.8em 0; padding: 20px 24px; border-left: 4px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0; background: var(--primary-soft); color: #24365a; font-size: 1.02rem; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 8px; font-size: .85rem; font-style: normal; color: var(--muted); }
.entry-content .wp-block-pullquote { border-top: 3px solid var(--primary); border-bottom: 3px solid var(--primary); padding: 1.6em 0; text-align: center; }
.entry-content .wp-block-pullquote blockquote { background: none; border: 0; padding: 0; font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); }

.entry-content table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.entry-content .wp-block-table { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius); }
.entry-content th, .entry-content td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content thead th, .entry-content tr:first-child th { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 700; }
.entry-content tbody tr:nth-child(even) td { background: var(--soft); }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content .wp-block-table thead { border-bottom: 0; }
.entry-content .wp-block-table td, .entry-content .wp-block-table th { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); }
.entry-content .wp-block-table tr:last-child td { border-bottom: 0; }
.entry-content .wp-block-table tfoot { border-top: 0; }

.entry-content code { font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); }
.entry-content pre { overflow-x: auto; padding: 18px 20px; border-radius: var(--radius); background: var(--ink); color: #e6edf9; font-size: .88rem; }
.entry-content pre code { background: none; border: 0; padding: 0; color: inherit; }
.entry-content hr, .entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry-content .wp-block-button__link { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 600; text-decoration: none; }
.entry-content .wp-block-button__link:hover { background: var(--primary-dark); color: #fff; }
.entry-content .is-style-outline .wp-block-button__link { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.entry-content .wp-block-embed { margin: 1.8em 0; }
.entry-content .wp-block-details, .entry-content details { margin: 0 0 12px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.entry-content details summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.entry-content details[open] summary { margin-bottom: 10px; }

/* Rank Math / Yoast FAQ blocks */
.entry-content .rank-math-faq-item, .entry-content .schema-faq-section { padding: 18px 22px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.entry-content .rank-math-question, .entry-content .schema-faq-question { display: block; margin: 0 0 8px; font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.entry-content .rank-math-answer p:last-child, .entry-content .schema-faq-answer { margin-bottom: 0; }

/* Highlight box: add the CSS class "callout" (or "callout warn") to a Paragraph or Group block */
.entry-content .callout { display: block; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 2em 0 1.4em; }
.post-tags a { padding: 4px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary) !important; font-size: .82rem; font-weight: 600; text-decoration: none !important; }
.page-links { margin: 1.6em 0; font-weight: 600; }

/* ---------- WordPress core helpers ---------- */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { position: static; width: auto; height: auto; clip: auto; }
.wp-caption { max-width: 100%; }
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-search { flex-direction: column; }
  .entry-content .alignleft, .entry-content .alignright { float: none; margin: 1.4em 0; max-width: 100%; }
  .hero-photo { display: none; }
}
