/* Blog list + blog details (bfc.services) */
.bfc-blog { --bfc-primary: #0d5070; --bfc-primary-dark: #093a52; --bfc-text: #1f2937; --bfc-muted: #6b7280; --bfc-border: #e5e7eb; --bfc-soft: #f4f7fb; color: var(--bfc-text); }
.bfc-blog a { text-decoration: none; }

/* Hero */
.bfc-blog-hero { background: linear-gradient(135deg, #0a4560 0%, var(--bfc-primary) 100%); color: #fff; padding: 64px 0 56px; }
.bfc-blog-hero .eyebrow { display: inline-block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; margin-bottom: 10px; }
.bfc-blog-hero h1 { color: #fff; font-size: 44px; line-height: 1.15; font-weight: 700; margin: 0 0 12px; }
.bfc-blog-hero p { color: rgba(255,255,255,.85); font-size: 17px; max-width: 620px; margin: 0; }
.bfc-blog-search { position: relative; max-width: 420px; margin-top: 28px; }
.bfc-blog-search input { width: 100%; height: 52px; border: 0; border-radius: 26px; padding: 0 20px 0 48px; font-size: 15px; color: var(--bfc-text); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.bfc-blog-search input:focus { outline: 3px solid rgba(255,255,255,.4); }
.bfc-blog-search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--bfc-muted); }

.bfc-blog-body { padding: 56px 0 90px; background: #fff; }

/* Meta line */
.bfc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; color: var(--bfc-muted); }
.bfc-meta i { margin-right: 6px; color: var(--bfc-primary); opacity: .75; }

/* Featured post */
.bfc-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--bfc-border); border-radius: 16px; overflow: hidden; margin-bottom: 48px; background: #fff; transition: box-shadow .25s; }
.bfc-featured:hover { box-shadow: 0 18px 40px rgba(13,80,112,.12); }
.bfc-featured .img { position: relative; min-height: 340px; background: var(--bfc-soft); }
.bfc-featured .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bfc-featured .content { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.bfc-featured h2 { font-size: 30px; line-height: 1.25; margin: 14px 0 14px; font-weight: 700; }
.bfc-featured h2 a { color: var(--bfc-text); }
.bfc-featured h2 a:hover { color: var(--bfc-primary); }
.bfc-featured p { color: var(--bfc-muted); font-size: 16px; line-height: 1.7; margin-bottom: 22px; }
.bfc-badge { display: inline-block; align-self: flex-start; background: rgba(13,80,112,.08); color: var(--bfc-primary); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; }

/* Grid */
.bfc-section-title { font-size: 22px; font-weight: 700; margin: 0 0 24px; color: var(--bfc-text); }
.bfc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.bfc-card { display: flex; flex-direction: column; border: 1px solid var(--bfc-border); border-radius: 14px; overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; }
.bfc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(13,80,112,.10); }
.bfc-card .img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bfc-soft); }
.bfc-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bfc-card:hover .img img { transform: scale(1.04); }
.bfc-card .content { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.bfc-card h3 { font-size: 19px; line-height: 1.35; font-weight: 700; margin: 10px 0 10px; }
.bfc-card h3 a { color: var(--bfc-text); }
.bfc-card h3 a:hover { color: var(--bfc-primary); }
.bfc-card p { color: var(--bfc-muted); font-size: 15px; line-height: 1.6; margin: 0 0 18px; flex: 1; }
.bfc-readmore { font-weight: 600; font-size: 14px; color: var(--bfc-primary) !important; }
.bfc-readmore i { margin-left: 6px; transition: transform .2s; }
.bfc-readmore:hover i { transform: translateX(4px); }
.bfc-card.is-hidden { display: none; }

.bfc-loadmore-wrap { text-align: center; margin-top: 44px; }
.bfc-btn { display: inline-block; background: var(--bfc-primary); color: #fff !important; border: 0; border-radius: 28px; padding: 13px 34px; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .2s; }
.bfc-btn:hover { background: var(--bfc-primary-dark); }
.bfc-btn-outline { background: transparent; color: var(--bfc-primary) !important; border: 2px solid var(--bfc-primary); }
.bfc-btn-outline:hover { background: var(--bfc-primary); color: #fff !important; }
.bfc-empty { text-align: center; color: var(--bfc-muted); padding: 40px 0; display: none; }

/* ---------- Details ---------- */
.bfc-article-hero { background: var(--bfc-soft); padding: 48px 0 40px; border-bottom: 1px solid var(--bfc-border); }
.bfc-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--bfc-primary) !important; margin-bottom: 18px; }
.bfc-article-hero h1 { font-size: 40px; line-height: 1.2; font-weight: 700; color: var(--bfc-text); margin: 0 0 16px; max-width: 860px; }
.bfc-article-wrap { max-width: 780px; margin: 0 auto; }
.bfc-article-img { margin: 40px auto 0; max-width: 780px; border-radius: 16px; overflow: hidden; }
.bfc-article-img img { width: 100%; max-height: 440px; object-fit: cover; display: block; }
.bfc-article { font-size: 18px; line-height: 1.8; color: #374151; padding-top: 36px; }
.bfc-article p { margin-bottom: 1.3em; font-size: inherit; line-height: inherit; color: inherit; }
.bfc-article h2, .bfc-article h3, .bfc-article h4 { color: var(--bfc-text); font-weight: 700; line-height: 1.3; margin: 1.8em 0 .7em; }
.bfc-article h2 { font-size: 28px; } .bfc-article h3 { font-size: 23px; } .bfc-article h4 { font-size: 20px; }
.bfc-article ul, .bfc-article ol { margin: 0 0 1.4em 1.4em; padding-left: 1em; }
.bfc-article ul li { list-style: disc; margin-bottom: .5em; } .bfc-article ol li { list-style: decimal; margin-bottom: .5em; }
.bfc-article a { color: var(--bfc-primary); text-decoration: underline; }
.bfc-article img { max-width: 100%; height: auto; border-radius: 10px; }
.bfc-article blockquote { border-left: 4px solid var(--bfc-primary); background: var(--bfc-soft); padding: 18px 24px; margin: 1.6em 0; border-radius: 0 10px 10px 0; font-style: italic; }
.bfc-article table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 16px; }
.bfc-article th, .bfc-article td { border: 1px solid var(--bfc-border); padding: 10px 14px; }
.bfc-article th { background: var(--bfc-soft); }

.bfc-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border-top: 1px solid var(--bfc-border); border-bottom: 1px solid var(--bfc-border); padding: 20px 0; margin: 40px 0; }
.bfc-share span { font-weight: 600; margin-right: 6px; }
.bfc-share a, .bfc-share button { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bfc-soft); color: var(--bfc-primary) !important; border: 0; cursor: pointer; transition: background .2s, color .2s; }
.bfc-share a:hover, .bfc-share button:hover { background: var(--bfc-primary); color: #fff !important; }
.bfc-share .copied { font-size: 13px; color: var(--bfc-muted); display: none; }

.bfc-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.bfc-prevnext a { display: block; border: 1px solid var(--bfc-border); border-radius: 12px; padding: 18px 20px; color: var(--bfc-text) !important; transition: border-color .2s, box-shadow .2s; }
.bfc-prevnext a:hover { border-color: var(--bfc-primary); box-shadow: 0 8px 20px rgba(13,80,112,.08); }
.bfc-prevnext small { display: block; color: var(--bfc-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.bfc-prevnext strong { font-size: 16px; line-height: 1.4; }
.bfc-prevnext .next { text-align: right; grid-column: 2; }

.bfc-related { background: var(--bfc-soft); padding: 64px 0 80px; }

/* Responsive */
@media (max-width: 991px) {
  .bfc-grid { grid-template-columns: repeat(2, 1fr); }
  .bfc-featured { grid-template-columns: 1fr; }
  .bfc-featured .img { min-height: 0; aspect-ratio: 16 / 9; }
  .bfc-featured .content { padding: 28px; }
}
@media (max-width: 767px) {
  .bfc-blog-hero { padding: 44px 0 40px; }
  .bfc-blog-hero h1 { font-size: 32px; }
  .bfc-article-hero h1 { font-size: 28px; }
  .bfc-featured h2 { font-size: 24px; }
  .bfc-grid { grid-template-columns: 1fr; gap: 22px; }
  .bfc-article { font-size: 17px; }
  .bfc-prevnext { grid-template-columns: 1fr; }
  .bfc-prevnext .next { grid-column: 1; }
}

/* RTL (Arabic) */
[dir="rtl"] .bfc-blog-search input, .bfc-rtl .bfc-blog-search input { padding: 0 48px 0 20px; }
.bfc-rtl .bfc-blog-search i { left: auto; right: 18px; }
.bfc-rtl .bfc-meta i { margin-right: 0; margin-left: 6px; }
.bfc-rtl .bfc-readmore i { margin-left: 0; margin-right: 6px; transform: scaleX(-1); }
.bfc-rtl .bfc-article blockquote { border-left: 0; border-right: 4px solid var(--bfc-primary); border-radius: 10px 0 0 10px; }
