/* eBoosters blog — index, category, search, single. Logical properties so it works RTL (ar) and LTR (en). */

.eb-blog .eb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero */
.eb-blog-hero { padding-block: calc(96px + clamp(28px, 5vw, 64px)) clamp(96px, 10vw, 140px); }
.eb-blog-hero__inner { max-width: 860px; text-align: center; }
.eb-blog-hero__eyebrow { font-size: .8125rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--eb-accent-on-night); }
.eb-blog-hero__title { margin-top: 10px; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.75rem); font-weight: 700; line-height: 1.25; color: #fff; text-wrap: balance; }
.eb-blog-hero__lead { margin: 16px auto 0; max-width: 680px; font-size: clamp(1rem, .95rem + .35vw, 1.2rem); line-height: 1.8; color: var(--eb-muted-on-night); }

/* Search */
.eb-blog-search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 28px auto 0; padding: 6px; background: #fff; border-radius: 16px; box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .55); }
.eb-blog-search__icon { display: grid; place-items: center; flex: none; width: 40px; color: #8A90A8; padding-inline-start: 8px; }
.eb-blog-search input[type="search"] { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 4px; border: 0; background: transparent; color: var(--eb-ink); font: inherit; font-size: 1rem; outline: none; }
.eb-blog-search input[type="search"]::placeholder { color: #7A819C; opacity: 1; }
.eb-blog-search input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.eb-blog-search__btn { flex: none; min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--eb-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background-color .2s ease; }
.eb-blog-search__btn:hover { background: var(--eb-accent-hover); }
.eb-blog-search:focus-within { box-shadow: 0 0 0 4px rgba(255, 77, 133, .45), 0 18px 50px -20px rgba(0, 0, 0, .55); }

/* Category chips */
.eb-blog-list { padding-block: clamp(8px, 2vw, 24px) clamp(64px, 8vw, 104px); }
.eb-blog-chips { display: flex; gap: 10px; margin-bottom: clamp(24px, 3vw, 40px); overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.eb-blog-chip { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0 18px; border: 1px solid var(--eb-line); border-radius: 999px; background: #fff; color: var(--eb-ink); font-weight: 500; font-size: .95rem; text-decoration: none; white-space: nowrap; transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.eb-blog-chip:hover { border-color: var(--eb-accent); color: var(--eb-accent); }
.eb-blog-chip[aria-current="page"] { background: var(--eb-ink); border-color: var(--eb-ink); color: #fff; }
.eb-blog-chip__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--eb-surface-soft); color: var(--eb-ink-muted); font-size: .75rem; }
.eb-blog-chip[aria-current="page"] .eb-blog-chip__count { background: rgba(255, 255, 255, .16); color: #fff; }

/* Grid + cards */
.eb-blog-grid { display: grid; grid-template-columns: 1fr; gap: clamp(18px, 2.4vw, 28px); }
@media (min-width: 640px) { .eb-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .eb-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.eb-post-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--eb-line); border-radius: var(--eb-radius-card); box-shadow: 0 14px 34px -26px rgba(21, 29, 62, .35); transition: transform .25s ease, box-shadow .25s ease; }
.eb-post-card:hover { transform: translateY(-4px); box-shadow: var(--eb-shadow); }
.eb-post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--eb-surface-soft); }
.eb-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.eb-post-card:hover .eb-post-card__media img { transform: scale(1.04); }
.eb-post-card__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: clamp(18px, 2vw, 24px); }
.eb-post-card__cat { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--eb-accent-tint); color: var(--eb-accent); font-size: .8rem; font-weight: 600; text-decoration: none; }
.eb-post-card__title { font-size: clamp(1.1rem, 1.02rem + .35vw, 1.3rem); font-weight: 700; line-height: 1.5; color: var(--eb-ink); }
.eb-post-card__title a { color: inherit; text-decoration: none; }
.eb-post-card__title a:hover { color: var(--eb-accent); }
.eb-post-card__title a:focus-visible, .eb-post-card__cat:focus-visible, .eb-blog-chip:focus-visible { outline: 3px solid var(--eb-accent); outline-offset: 3px; border-radius: 6px; }
.eb-post-card__excerpt { color: var(--eb-ink-muted); font-size: .95rem; line-height: 1.75; }
.eb-post-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; color: #7A819C; font-size: .85rem; }

@media (min-width: 900px) {
	.eb-post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
	.eb-post-card--featured .eb-post-card__media { aspect-ratio: auto; min-height: 100%; }
	.eb-post-card--featured .eb-post-card__body { justify-content: center; padding: clamp(28px, 3.5vw, 48px); gap: 14px; }
	.eb-post-card--featured .eb-post-card__title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.4; }
	.eb-post-card--featured .eb-post-card__excerpt { font-size: 1.05rem; }
}

/* Pagination */
.eb-blog-pagination { margin-top: clamp(32px, 4vw, 48px); }
.eb-blog-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.eb-blog-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--eb-line); border-radius: 12px; background: #fff; color: var(--eb-ink); text-decoration: none; font-weight: 500; }
.eb-blog-pagination a.page-numbers:hover { border-color: var(--eb-accent); color: var(--eb-accent); }
.eb-blog-pagination .current { background: var(--eb-accent); border-color: var(--eb-accent); color: #fff; }

.eb-blog-empty { max-width: 560px; margin: 24px auto; padding: 40px 24px; text-align: center; border: 1px dashed var(--eb-line); border-radius: var(--eb-radius-card); }
.eb-blog-empty h2 { font-size: 1.4rem; color: var(--eb-ink); }
.eb-blog-empty p { margin: 8px 0 20px; color: var(--eb-ink-muted); }

/* Single: hero */
.eb-article-hero { padding-block: calc(96px + clamp(24px, 4vw, 56px)) clamp(120px, 12vw, 190px); }
.eb-article-hero__inner { max-width: 900px; text-align: center; }
.eb-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: .9rem; color: var(--eb-muted-on-night); }
.eb-crumbs a { color: var(--eb-muted-on-night); text-decoration: none; }
.eb-crumbs a:hover { color: #fff; }
.eb-article-hero__title { margin-top: 16px; font-size: clamp(1.8rem, 1.25rem + 2.4vw, 3rem); font-weight: 700; line-height: 1.35; color: #fff; text-wrap: balance; }
.eb-article-hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; color: var(--eb-muted-on-night); font-size: .95rem; }

/* Single: cover + layout */
.eb-article__wrap { position: relative; z-index: 2; }
.eb-article__cover { max-width: 1040px; margin: calc(-1 * clamp(96px, 10vw, 160px)) auto 0; }
.eb-article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--eb-radius-card); box-shadow: var(--eb-shadow); }
.eb-article__cover figcaption { margin-top: 8px; color: #7A819C; font-size: .8rem; text-align: center; }

.eb-article__grid { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 1040px; margin: clamp(28px, 4vw, 48px) auto 0; padding-bottom: clamp(48px, 6vw, 80px); }
@media (min-width: 1024px) {
	.eb-article__grid { grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
	.eb-toc { position: sticky; top: 24px; }
	.admin-bar .eb-toc { top: 56px; }
}

.eb-toc details { border: 1px solid var(--eb-line); border-radius: var(--eb-radius-tile); background: var(--eb-surface-soft); }
.eb-toc summary { padding: 14px 18px; font-weight: 700; color: var(--eb-ink); cursor: pointer; list-style-position: inside; }
.eb-toc ol { margin: 0; padding: 0 18px 16px; padding-inline-start: 36px; display: grid; gap: 8px; font-size: .92rem; line-height: 1.6; }
.eb-toc a { color: var(--eb-ink-muted); text-decoration: none; }
.eb-toc a:hover { color: var(--eb-accent); }

/* Readable article typography */
.eb-article__main { min-width: 0; max-width: 740px; }
.eb-prose { color: #2A3150; font-size: clamp(1.05rem, 1rem + .2vw, 1.14rem); line-height: 1.95; overflow-wrap: anywhere; }
html[lang^="en"] .eb-prose { line-height: 1.8; }
.eb-prose > * + * { margin-top: 1.1em; }
.eb-prose h2 { margin-top: 1.9em; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); font-weight: 700; line-height: 1.45; color: var(--eb-ink); scroll-margin-top: 24px; }
.eb-prose h3 { margin-top: 1.5em; font-size: clamp(1.15rem, 1.08rem + .35vw, 1.32rem); font-weight: 700; line-height: 1.5; color: var(--eb-ink); }
.eb-prose p:first-child { font-size: 1.1em; color: var(--eb-ink); }
.eb-prose ul, .eb-prose ol { padding-inline-start: 1.4em; }
.eb-prose ul { list-style: disc; }
.eb-prose ol { list-style: decimal; }
.eb-prose li + li { margin-top: .45em; }
.eb-prose li::marker { color: var(--eb-accent); }
.eb-prose strong { color: var(--eb-ink); }
.eb-prose a { color: var(--eb-accent); text-decoration: underline; text-underline-offset: 3px; }
.eb-prose a:hover { color: var(--eb-accent-hover); }

/* FAQ */
.eb-article-faq { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--eb-line); scroll-margin-top: 24px; }
.eb-article-faq h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); font-weight: 700; color: var(--eb-ink); margin-bottom: 16px; }
.eb-faq-item { border: 1px solid var(--eb-line); border-radius: var(--eb-radius-tile); background: #fff; }
.eb-faq-item + .eb-faq-item { margin-top: 12px; }
.eb-faq-item summary { padding: 16px 20px; font-weight: 700; color: var(--eb-ink); cursor: pointer; line-height: 1.6; }
.eb-faq-item[open] summary { color: var(--eb-accent); }
.eb-faq-item p { padding: 0 20px 18px; color: var(--eb-ink-muted); line-height: 1.85; }

/* Share */
.eb-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding: 18px 20px; border-radius: var(--eb-radius-tile); background: var(--eb-surface-soft); }
.eb-share__label { font-weight: 700; color: var(--eb-ink); }
.eb-share a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--eb-line); border-radius: 999px; background: #fff; color: var(--eb-ink); font-size: .9rem; font-weight: 500; text-decoration: none; }
.eb-share a:hover { border-color: var(--eb-accent); color: var(--eb-accent); }

/* Related */
.eb-blog-related { padding-block: clamp(56px, 7vw, 96px); background: var(--eb-surface-soft); }
.eb-blog-related__title { margin-bottom: clamp(20px, 3vw, 32px); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); font-weight: 700; color: var(--eb-ink); text-align: center; }
.eb-blog-related .eb-post-card__title { font-size: 1.12rem; }

/* CTA band spacing inside blog */
.eb-blog-band { margin: 0; }

@media (max-width: 560px) {
	.eb-blog-search { flex-wrap: wrap; padding: 8px; }
	.eb-blog-search__icon { display: none; }
	.eb-blog-search input[type="search"] { flex-basis: 100%; padding: 0 10px; }
	.eb-blog-search__btn { width: 100%; }
	.eb-article-hero__meta { font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
	.eb-post-card, .eb-post-card__media img { transition: none; }
	.eb-post-card:hover { transform: none; }
	.eb-post-card:hover .eb-post-card__media img { transform: none; }
}

/* End-of-article call to action (free consultation) */
.eb-article-cta { position: relative; overflow: hidden; margin-top: 44px; padding: clamp(24px, 4vw, 40px); border-radius: var(--eb-radius-card); color: #fff; background-color: var(--eb-night); background-image: radial-gradient(70% 90% at 0% 0%, rgba(224, 22, 90, .45), transparent 65%), radial-gradient(60% 80% at 100% 100%, rgba(52, 76, 220, .45), transparent 70%); box-shadow: var(--eb-shadow); }
.eb-article-cta__eyebrow { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: var(--eb-accent-on-night); font-size: .8rem; font-weight: 600; }
.eb-article-cta__title { margin-top: 12px; font-size: clamp(1.35rem, 1.15rem + .9vw, 1.85rem); font-weight: 700; line-height: 1.4; color: #fff; }
.eb-article-cta__text { margin-top: 10px; color: var(--eb-muted-on-night); line-height: 1.85; }
.eb-article-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.eb-article-cta__actions .eb-btn { min-height: 52px; }
.eb-article-cta__wa { background: #fff; color: var(--eb-ink); }
.eb-article-cta__wa:hover { background: #F1F3F9; color: var(--eb-ink); }
.eb-article-cta__wa .eb-icon { width: 20px; height: 20px; color: #25D366; }
.eb-article-cta__info { margin-top: 18px; font-size: .85rem; color: var(--eb-muted-on-night); }
.eb-article-cta__info a { color: #fff; }
@media (max-width: 560px) { .eb-article-cta__actions .eb-btn { width: 100%; } }

/* The list itself also carries .page-numbers (paginate_links type=list): reset it so only the items look like buttons. */
.eb-blog-pagination ul.page-numbers { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.eb-blog-pagination li { display: flex; }
