/* ==========================================================================
   Blog / articles area (irisharish.co.il) — loaded only on blog views.
   Tokens come from css/vars.css: --primary-color #CD7F99, --color #535353,
   --bg-grey #ECECEC, --color-border #c7c5c2, --header-color #252525, font Alef.
   ========================================================================== */

:root {
    --blog-ink: var(--header-color, #252525);
    --blog-muted: #7a7a7a;
    --blog-line: #e6dfe2;
    --blog-tint: #fbf4f7;
    --blog-radius: 14px;
}

.irish-blog .container-small { padding-left: 15px; padding-right: 15px; }

/* ---------- breadcrumbs ---------- */
.wb-crumbs { padding: 18px 0 6px; font-size: 14px; color: var(--blog-muted); }
.wb-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.wb-crumbs li { display: inline-flex; align-items: center; }
.wb-crumbs li + li::before { content: '/'; margin: 0 8px; color: #b9b9b9; }
.wb-crumbs a { color: var(--primary-color); }
.wb-crumbs a:hover { text-decoration: underline; }
.wb-crumbs span[aria-current] { color: var(--blog-ink); }

/* ---------- article ---------- */
.wb-article__inner { max-width: 860px; margin: 0 auto; padding-bottom: 30px; }
.wb-article__header { padding: 10px 0 18px; }
.wb-article__title { font-size: 36px; line-height: 1.2; font-weight: 700; color: var(--blog-ink); margin: 0 0 14px; }

.post-author-line { display: flex; align-items: center; gap: 12px; }
.post-author-line__avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 70% 42%; display: block; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--blog-line); }
.post-author-line__text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.4; }
.post-author-line__by { color: var(--blog-ink); font-weight: 700; }
.post-author-line__by a { color: var(--primary-color); }
.post-author-line__by a:hover { text-decoration: underline; }
.post-author-line__role { font-weight: 400; color: var(--blog-muted); }
.post-author-line__meta { color: var(--blog-muted); font-size: 13.5px; }

.wb-article__featured { margin: 6px 0 26px; }
.wb-article__featured img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--blog-radius); display: block; }
.wb-article__featured figcaption { font-size: 13px; color: var(--blog-muted); margin-top: 8px; }

.wb-article__content { font-size: 18px; line-height: 1.85; color: var(--color); }
.wb-article__content > :first-child { margin-top: 0; }
.wb-article__content p { margin: 0 0 1.15em; line-height: 1.85; }
.wb-article__content h2 { font-size: 27px; line-height: 1.25; font-weight: 700; color: var(--blog-ink); margin: 1.7em 0 0.6em; padding-bottom: 0.3em; border-bottom: 2px solid var(--blog-line); scroll-margin-top: 110px; }
.wb-article__content h3 { font-size: 21px; line-height: 1.3; font-weight: 700; color: var(--primary-color); margin: 1.4em 0 0.5em; scroll-margin-top: 110px; }
.wb-article__content h4 { font-size: 18px; font-weight: 700; color: var(--blog-ink); margin: 1.2em 0 0.4em; }
.wb-article__content ul, .wb-article__content ol { margin: 0 0 1.2em; padding-right: 1.5em; }
.wb-article__content ul { list-style: disc; }
.wb-article__content ol { list-style: decimal; }
.wb-article__content li { margin: 0.35em 0; }
.wb-article__content a { color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px; }
.wb-article__content a:hover { color: #a9607a; }
.wb-article__content strong { color: var(--blog-ink); }
.wb-article__content blockquote { margin: 1.4em 0; padding: 14px 22px; border-right: 4px solid var(--primary-color); background: var(--blog-tint); border-radius: 0 8px 8px 0; font-style: italic; }
.wb-article__content img { max-width: 100%; height: auto; border-radius: 10px; }
.wb-article__content figure { margin: 1.5em 0; }
.wb-article__content figcaption { font-size: 14px; color: var(--blog-muted); text-align: center; margin-top: 8px; line-height: 1.5; }
.wb-article__content .wb-inline-figure { max-width: 520px; margin: 1.6em auto; }
.wb-article__content .wb-inline-figure img { width: 100%; display: block; }
.wb-article__content .wb-inline-figure a { text-decoration: none; }
.wb-article__content .wb-inline-figure figcaption a { text-decoration: underline; }
.wb-article__content table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 16px; }
.wb-article__content th, .wb-article__content td { border: 1px solid var(--blog-line); padding: 9px 12px; text-align: right; vertical-align: top; }
.wb-article__content th { background: var(--blog-tint); color: var(--blog-ink); }
.wb-article__content em.disclaimer, .wb-article__content .wb-disclaimer { display: block; font-size: 14.5px; color: var(--blog-muted); margin-top: 1.6em; }

/* ---------- table of contents ---------- */
.wb-toc { border: 1px solid var(--blog-line); border-radius: var(--blog-radius); margin: 0 0 30px; background: #fff; }
.wb-toc__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--blog-line); }
.wb-toc__title { font-size: 18px; font-weight: 700; color: var(--blog-ink); margin: 0; }
.wb-toc__toggle { background: none; border: 0; color: #999; cursor: pointer; line-height: 0; padding: 4px; transition: transform .25s; }
.wb-toc__toggle svg { display: block; }
.wb-toc.is-collapsed .wb-toc__toggle { transform: rotate(180deg); }
.wb-toc.is-collapsed .wb-toc__head { border-bottom: 0; }
.wb-toc.is-collapsed .wb-toc__list { display: none; }
.wb-toc__list { list-style: none; margin: 0; padding: 14px 20px; counter-reset: toc-flat; font-size: 16px; }
.wb-toc__item { margin: 6px 0; counter-increment: toc-flat; }
.wb-toc__item::before { content: counter(toc-flat) '. '; color: var(--primary-color); font-weight: 700; }
.wb-toc__list.is-hierarchical { counter-reset: toc-h2; }
.wb-toc__list.is-hierarchical .wb-toc__item { counter-increment: none; }
.wb-toc__list.is-hierarchical .wb-toc__item::before { content: none; }
.wb-toc__list.is-hierarchical .wb-toc__item--l2 { counter-increment: toc-h2; counter-reset: toc-h3; }
.wb-toc__list.is-hierarchical .wb-toc__item--l2::before { content: counter(toc-h2) '. '; }
.wb-toc__list.is-hierarchical .wb-toc__item--l3 { padding-right: 22px; counter-increment: toc-h3; font-size: 15px; }
.wb-toc__list.is-hierarchical .wb-toc__item--l3::before { content: counter(toc-h2) '.' counter(toc-h3) ' '; }
.wb-toc__item a { color: var(--blog-ink); }
.wb-toc__item a:hover { color: var(--primary-color); text-decoration: underline; }

/* ---------- FAQ ---------- */
.post-faq { margin: 40px 0 10px; scroll-margin-top: 110px; }
.post-faq__title { font-size: 27px; font-weight: 700; color: var(--blog-ink); margin: 0 0 16px; padding-bottom: 0.3em; border-bottom: 2px solid var(--blog-line); }
.post-faq__item { border: 1px solid var(--color-border); border-radius: 15px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.post-faq__q { cursor: pointer; list-style: none; padding: 15px 50px 15px 25px; font-size: 18px; font-weight: 700; color: var(--blog-ink); position: relative; }
.post-faq__q::-webkit-details-marker { display: none; }
.post-faq__q::before { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; line-height: 1; color: var(--primary-color); }
.post-faq__item[open] .post-faq__q::before { content: '–'; }
.post-faq__item[open] .post-faq__q { border-bottom: 1px solid var(--blog-line); }
.post-faq__a { padding: 15px 25px; background: var(--bg-grey); font-size: 16.5px; line-height: 1.8; }
.post-faq__a p { margin: 0 0 0.8em; }
.post-faq__a p:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.post-cta { margin: 38px 0 8px; padding: 26px 28px; border-radius: var(--blog-radius); background: var(--blog-tint); border: 1px solid var(--blog-line); text-align: center; }
.post-cta__title { font-size: 22px; font-weight: 700; margin: 0 0 8px; color: var(--blog-ink); }
.post-cta__text { font-size: 16px; margin: 0 auto 18px; max-width: 560px; line-height: 1.7; }
.post-cta__buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.post-cta__btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; font-weight: 700; font-size: 16px; line-height: 1; border-radius: 6px; transition: transform .15s ease, background-color .15s ease; }
.post-cta__btn:hover { transform: translateY(-2px); }
.post-cta__btn--primary { background: var(--primary-color); color: #fff; }
.post-cta__btn--primary:hover { background: #b96a86; color: #fff; }
.post-cta__btn--whatsapp { background: #25D366; color: #fff; }
.post-cta__btn--whatsapp:hover { background: #1fb457; color: #fff; }

/* ---------- share ---------- */
.post-share { display: flex; align-items: center; gap: 12px; padding: 20px 0; margin-top: 16px; border-top: 1px solid var(--blog-line); }
.post-share__label { font-size: 16px; font-weight: 700; color: var(--blog-ink); }
.post-share a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--primary-color); color: var(--primary-color); font-size: 17px; transition: all .2s; }
.post-share a:hover { background: var(--primary-color); color: #fff; }

/* ---------- author box ---------- */
.post-author-box { display: flex; gap: 20px; align-items: flex-start; padding: 24px; border: 1px solid var(--blog-line); border-radius: var(--blog-radius); background: #fff; margin: 10px 0 30px; }
.post-author-box__img { width: 96px; height: 96px; flex: 0 0 96px; border-radius: 50%; object-fit: cover; object-position: 70% 42%; }
.post-author-box__label { font-size: 13px; letter-spacing: .04em; color: var(--blog-muted); margin: 0 0 4px; }
.post-author-box__name { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: var(--blog-ink); }
.post-author-box__name a { color: var(--blog-ink); }
.post-author-box__name a:hover { color: var(--primary-color); }
.post-author-box__name span { font-size: 15px; font-weight: 400; color: var(--blog-muted); }
.post-author-box__bio { font-size: 15.5px; line-height: 1.7; margin: 0 0 10px; }
.post-author-box__links { font-size: 15px; margin: 0; }
.post-author-box__links a { color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- related ---------- */
.post-related { padding: 10px 0 40px; }
.post-related .wb_title .heading { margin-bottom: 18px; }

/* ---------- index / archive ---------- */
.wb-blog-index__header { padding: 8px 0 22px; max-width: 860px; }
.wb-blog-index__title { font-size: 34px; line-height: 1.2; font-weight: 700; color: var(--blog-ink); margin: 0 0 10px; }
.wb-blog-index__intro { font-size: 17px; line-height: 1.8; color: var(--color); }
.wb-blog-index__intro p { margin: 0 0 0.8em; }
.wb-posts-empty { padding: 40px 0; font-size: 18px; }

/* ---------- cards ---------- */
.wb-posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.wb-post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--blog-line); border-radius: 16px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.wb-post-card:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .09); transform: translateY(-2px); }
.wb-post-card__thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-grey); }
.wb-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.wb-post-card:hover .wb-post-card__thumb img { transform: scale(1.04); }
.wb-post-card__thumb .wb-post-card__placeholder { object-fit: contain; padding: 18%; }
.wb-post-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1 1 auto; }
.wb-post-card__cat { align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--primary-color); letter-spacing: .02em; margin-bottom: 6px; }
.wb-post-card__cat:hover { text-decoration: underline; }
.wb-post-card__title { font-size: 20px; line-height: 1.3; font-weight: 700; margin: 0 0 8px; color: var(--blog-ink); }
.wb-post-card__title a { color: inherit; }
.wb-post-card__title a:hover { color: var(--primary-color); }
.wb-post-card__meta { font-size: 13px; color: var(--blog-muted); margin-bottom: 10px; }
.wb-post-card__excerpt { font-size: 15px; line-height: 1.7; margin: 0 0 14px; color: var(--color); }
.wb-post-card__more { margin-top: auto; align-self: flex-start; font-size: 15px; font-weight: 700; color: var(--primary-color); }
.wb-post-card__more:hover { text-decoration: underline; }

/* ---------- pagination ---------- */
.wb-pagination { margin: 36px 0 20px; }
.wb-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.wb-pagination .page-numbers { display: inline-block; min-width: 40px; padding: 8px 12px; text-align: center; border: 1px solid var(--blog-line); border-radius: 6px; color: var(--blog-ink); font-size: 15px; }
.wb-pagination .page-numbers.current { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.wb-pagination a.page-numbers:hover { border-color: var(--primary-color); color: var(--primary-color); }
.wb-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- responsive ---------- */
@media (max-width: 992px) {
    .wb-posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
    .wb-article__title { font-size: 30px; }
}
@media (max-width: 600px) {
    .wb-posts-grid { grid-template-columns: minmax(0, 1fr); }
    .wb-article__title { font-size: 26px; }
    .wb-blog-index__title { font-size: 27px; }
    .wb-article__content { font-size: 17px; }
    .wb-article__content h2 { font-size: 23px; }
    .wb-article__content h3 { font-size: 19px; }
    .wb-article__featured img { max-height: 380px; }
    .post-cta { padding: 20px 16px; }
    .post-cta__btn { width: 100%; justify-content: center; }
    .post-author-box { flex-direction: column; align-items: center; text-align: center; }
    .post-faq__q { font-size: 16.5px; padding-right: 44px; }
}
