/* Behfarm theme — Author: SPSDEVNIC.NET */
@font-face { font-family: Vazirmatn; src: url(../fonts/Vazirmatn-Regular.woff2) format("woff2"); font-weight: 100 450; font-style: normal; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(../fonts/Vazirmatn-Medium.woff2) format("woff2"); font-weight: 451 600; font-style: normal; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(../fonts/Vazirmatn-Bold.woff2) format("woff2"); font-weight: 601 750; font-style: normal; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(../fonts/Vazirmatn-Black.woff2) format("woff2"); font-weight: 751 950; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #F4F2EE; color: #5B5B57; font: 400 16px/1.9 Vazirmatn, Tahoma, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
a { color: #E0352B; }
a:hover { color: #BF2A21; }
h1, h2, h3, h4, h5, h6 { color: #1A1A19; font-family: Vazirmatn, Tahoma, sans-serif; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(224, 53, 43, .45); outline-offset: 2px; }
::selection { background: #E0352B; color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.bft-skip { position: absolute; top: -60px; inset-inline-start: 12px; z-index: 999; padding: 10px 16px; border-radius: 10px; background: #1A1A19; color: #fff; text-decoration: none; }
.bft-skip:focus { top: 12px; color: #fff; }

/* Elementor pages: let the widgets control spacing. */
.bft-main--el, .elementor-page .bft-main { padding: 0; }
.elementor-page .site-main { padding: 0; }
.bft-main { padding: 12px clamp(16px, 4vw, 40px) 40px; }
.bft-wrap { max-width: 1240px; margin-inline: auto; }

/* Page head (blog, plain pages) */
.bft-pagehead { max-width: 1240px; margin: 8px auto 28px; padding: clamp(28px, 5vw, 56px); background: #fff; border: 1px solid #E6E2DB; border-radius: 28px; display: flex; flex-direction: column; gap: 12px; }
.bft-pagehead h1, .bft-article__head h1 { margin: 0; color: #1A1A19; font: 900 clamp(28px, 4vw, 46px)/1.35 Vazirmatn, Tahoma, sans-serif; letter-spacing: -.5px; text-wrap: balance; }
.bft-pagehead .bf-lead { max-width: 780px; }
.bf-crumbs span { color: #B4B0A8; }
.bft-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 8px 0 0; padding: 0; }
.bft-chips a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid #E6E2DB; background: #fff; color: #1A1A19; font-weight: 600; font-size: 14px; text-decoration: none; transition: .2s; }
.bft-chips a:hover, .bft-chips a[aria-current] { background: #1A1A19; color: #fff; border-color: #1A1A19; }
.bft-card { max-width: 1240px; margin-inline: auto; background: #fff; border: 1px solid #E6E2DB; border-radius: 28px; padding: clamp(24px, 5vw, 56px); }
.bft-grid { max-width: 1240px; margin-inline: auto; }
.bft-empty { text-align: center; }

/* Pagination */
.bft-pages { display: flex; justify-content: center; gap: 6px; margin: 36px auto 0; flex-wrap: wrap; }
.bft-pages a, .bft-pages span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid #E6E2DB; color: #1A1A19; text-decoration: none; font-weight: 700; }
.bft-pages .current { background: #E0352B; border-color: #E0352B; color: #fff; }

/* Article */
.bft-article { max-width: 1240px; margin-inline: auto; }
.bft-article__head { max-width: 860px; margin: 12px auto 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bft-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0; color: #8B8A85; font-size: 14px; }
.bft-meta > * + *::before { content: "•"; margin-inline-end: 18px; color: #D6D1C8; }
.bft-article__img { margin: 0 auto 36px; border-radius: 28px; overflow: hidden; aspect-ratio: 21 / 9; background: #E6E2DB; }
.bft-article__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bft-article__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.bft-article__aside { position: sticky; top: 110px; }

.bft-prose { background: #fff; border: 1px solid #E6E2DB; border-radius: 28px; padding: clamp(22px, 4.5vw, 56px); font-size: 17px; line-height: 2.15; color: #3F3F3B; min-width: 0; }
.bft-prose > :first-child { margin-top: 0; }
.bft-prose h2 { margin: 2em 0 .6em; font-size: clamp(22px, 2.4vw, 28px); font-weight: 900; scroll-margin-top: 110px; }
.bft-prose h3 { margin: 1.6em 0 .5em; font-size: clamp(18px, 1.8vw, 21px); font-weight: 800; }
.bft-prose p { margin: 0 0 1.2em; }
.bft-prose ul, .bft-prose ol { margin: 0 0 1.4em; padding-inline-start: 1.4em; }
.bft-prose ol, .bft-toc ol { list-style: persian; }
.bft-prose li { margin-bottom: .4em; }
.bft-prose li::marker { color: #E0352B; font-weight: 800; }
.bft-prose strong { color: #1A1A19; }
.bft-prose a { color: #BF2A21; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.bft-prose blockquote { margin: 1.5em 0; padding: 18px 22px; border-inline-start: 4px solid #E0352B; background: #FAF7F2; border-radius: 0 14px 14px 0; }
.bft-table { overflow-x: auto; margin: 0 0 1.6em; border-radius: 16px; border: 1px solid #E6E2DB; }
.bft-prose table { width: 100%; border-collapse: collapse; margin: 0; font-size: 15px; line-height: 1.8; min-width: 420px; }
.bft-prose th, .bft-prose td { padding: 12px 16px; border-bottom: 1px solid #EFEBE5; text-align: start; }
.bft-prose thead th { background: #FAF7F2; color: #1A1A19; font-weight: 800; }
.bft-prose tbody tr:last-child td { border-bottom: 0; }
.bft-toc { margin: 0 0 2em; padding: 20px 24px; border-radius: 18px; background: #FAF7F2; border: 1px solid #EFEBE5; }
.bft-toc p { margin: 0 0 8px; color: #1A1A19; font-weight: 900; }
.bft-toc ol { margin: 0; padding-inline-start: 1.3em; font-size: 15px; line-height: 2; }
.bft-toc a { color: #3F3F3B; text-decoration: none; }
.bft-toc a:hover { color: #E0352B; }

.bft-cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 28px; border-radius: 24px; background: #21211F; color: rgba(255, 255, 255, .75); font-size: 15px; line-height: 1.9; }
.bft-wrap .bft-cta { margin-top: 40px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.bft-cta p { margin: 0; }
.bft-cta__t { color: #fff; font: 900 21px/1.6 Vazirmatn, Tahoma, sans-serif; }
.bft-cta .bf-eyebrow { color: #FF8A80; }
.bft-cta__link { color: rgba(255, 255, 255, .85) !important; font-weight: 700; text-decoration: none; font-size: 14px; }
.bft-related { max-width: 1240px; margin: 56px auto 0; display: flex; flex-direction: column; gap: 24px; }

/* Search form */
.bft-search { display: flex; gap: 8px; max-width: 520px; margin: 16px auto; padding: 6px; background: #fff; border: 1px solid #E6E2DB; border-radius: 999px; }
.bft-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 16px; outline: none; color: #1A1A19; }
.bft-search button { border: 0; border-radius: 999px; background: #1A1A19; color: #fff; padding: 10px 20px; font-weight: 700; cursor: pointer; }
.bft-404 { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 12px; }
.bft-404__code { margin: 0; color: #E0352B; font: 900 clamp(72px, 14vw, 140px)/1 Vazirmatn, Tahoma, sans-serif; }
.bft-404 h1 { margin: 0; }
.bft-404 .bft-chips { justify-content: center; }

.bft-footer-wrap { padding: 40px clamp(12px, 2vw, 24px) 24px; }
.bft-mini-footer { text-align: center; padding: 30px 16px; font-size: 14px; color: #8B8A85; }

@media (max-width: 1000px) {
	.bft-article__grid { grid-template-columns: 1fr; }
	.bft-article__aside { position: static; }
}
@media (max-width: 640px) {
	.bft-main { padding-inline: 12px; }
	.bft-prose { font-size: 16px; border-radius: 20px; }
	.bft-article__img { aspect-ratio: 16 / 10; border-radius: 20px; }
	.bft-pagehead, .bft-card { border-radius: 22px; }
}
