/* The site-wide floating EN/FR/AR widget (#drop-lng) is replaced on blog
   pages by .fc-lang-switcher below, which is EN/FR only and positioned
   consistently on mobile. Hide the original everywhere on the blog. */
section#drop-lng, footer.footer { display: none !important; }
body { background: #f6f8fb !important; }

.fc-blog { --fc-ink: #0f1f38; --fc-muted: #5a6b84; --fc-line: #e5eaf2; }

/* ---------- Hero ---------- */
.fc-blog-hero {
  background: linear-gradient(160deg, #33003b 0%, #4a0955 60%, #5c1270 100%);
  padding: 72px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.fc-blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(251,215,19,0.08) 0%, transparent 70%);
  z-index: -1;
}
.fc-blog-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251,215,19,0.12);
  border: 1px solid rgba(251,215,19,0.28);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #fbd713;
  margin-bottom: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fc-blog-hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.fc-blog-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Category filter ---------- */
.fc-blog-filters {
  max-width: 1160px;
  margin: -22px auto 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.fc-chip {
  background: #fff;
  border: 1px solid var(--fc-line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #4a0955;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(51,0,59,0.06);
  transition: background .15s, color .15s, border-color .15s;
}
.fc-chip:hover { background: #f3e8f6; text-decoration: none; color: #33003b; }
.fc-chip--active { background: #33003b; border-color: #33003b; color: #fbd713; }
.fc-chip--active:hover { background: #33003b; color: #fbd713; }

/* ---------- Grid ---------- */
.fc-blog-grid-wrap { max-width: 1160px; margin: 0 auto; padding: 44px 24px 24px; }
.fc-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.fc-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--fc-line);
  box-shadow: 0 2px 16px rgba(51,0,59,0.06);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.fc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(51,0,59,0.13);
  border-color: rgba(74,9,85,0.25);
  text-decoration: none;
  color: inherit;
}
.fc-card-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #33003b, #5c1270);
  position: relative;
  overflow: hidden;
}
.fc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.fc-card:hover .fc-card-media img { transform: scale(1.04); }
.fc-card-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(251,215,19,0.55);
  font-size: 42px;
}
.fc-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.fc-card-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--fc-muted); font-weight: 500; }
.fc-card-cat {
  color: #4a0955;
  background: #f3e8f6;
  border-radius: 6px;
  padding: 3px 9px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.fc-card h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--fc-ink);
  line-height: 1.32;
  margin: 0;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fc-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fc-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fc-card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--fc-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--fc-muted);
}
.fc-card-author { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--fc-ink); }
.fc-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #4a0955, #33003b);
  color: #fbd713;
  font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fc-card-read { color: #4a0955; font-weight: 700; }
.fc-card-read i { margin-left: 4px; transition: transform .15s; }
.fc-card:hover .fc-card-read i { transform: translateX(3px); }

.fc-blog-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--fc-muted);
}
.fc-blog-empty i { font-size: 40px; color: #c9b3d0; margin-bottom: 16px; display: block; }

/* ---------- Pagination ---------- */
.fc-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 24px 24px 64px; }
.fc-page-link {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--fc-line); background: #fff;
  color: var(--fc-ink); font-weight: 600; font-size: 14px; text-decoration: none;
}
.fc-page-link:hover { border-color: #4a0955; color: #4a0955; text-decoration: none; }
.fc-page-link--active { background: #33003b; border-color: #33003b; color: #fbd713; }
.fc-page-link--disabled { opacity: .4; pointer-events: none; }

/* ---------- CTA band ---------- */
.fc-blog-cta {
  max-width: 1160px;
  margin: 0 auto 72px;
  padding: 0 24px;
}
.fc-blog-cta-inner {
  background: linear-gradient(135deg, #33003b, #5c1270);
  border-radius: 20px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  color: #fff;
}
.fc-blog-cta h3 { font-size: 24px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.01em; }
.fc-blog-cta p { margin: 0; color: rgba(255,255,255,0.7); font-size: 15px; }
.fc-btn-accent {
  background: #fbd713; color: #33003b; font-weight: 700; font-size: 15px;
  border-radius: 10px; padding: 12px 24px; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; transition: filter .15s;
}
.fc-btn-accent:hover { filter: brightness(1.08); text-decoration: none; color: #33003b; }

/* ---------- Article page ---------- */
.fc-article-top {
  background: linear-gradient(160deg, #33003b 0%, #4a0955 60%, #5c1270 100%);
  padding: 44px 24px 120px;
  color: #fff;
}
.fc-article-top-inner { max-width: 860px; margin: 0 auto; }
.fc-back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 13.5px; font-weight: 600; margin-bottom: 18px;
}
.fc-back-btn i { font-size: 12px; }
.fc-back-btn:hover { color: #fbd713; text-decoration: none; }
.fc-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 26px; list-style: none; padding: 0; }
.fc-crumbs a { color: rgba(255,255,255,0.75); text-decoration: none; }
.fc-crumbs a:hover { color: #fbd713; }
.fc-crumbs li + li::before { content: '/'; margin-right: 8px; color: rgba(255,255,255,0.3); }
.fc-article-cat {
  display: inline-block;
  background: rgba(251,215,19,0.14);
  border: 1px solid rgba(251,215,19,0.3);
  color: #fbd713;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.fc-article-top h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: #fff;
}
.fc-article-lede { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.75); margin: 0 0 26px; max-width: 720px; }
.fc-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 13.5px; color: rgba(255,255,255,0.7); }
.fc-article-meta .fc-avatar { width: 34px; height: 34px; font-size: 13px; background: #fbd713; color: #33003b; }
.fc-article-meta strong { color: #fff; font-weight: 600; }
.fc-article-meta i { margin-right: 6px; color: #fbd713; }

.fc-article-cover {
  max-width: 980px;
  margin: -84px auto 0;
  padding: 0 24px;
}
.fc-article-cover img, .fc-article-cover-placeholder {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(51,0,59,0.25);
  display: block;
  background: #fff;
}
.fc-article-cover-placeholder {
  background: linear-gradient(135deg, #2a0030, #5c1270);
  display: flex; align-items: center; justify-content: center;
  color: rgba(251,215,19,0.5); font-size: 64px;
}

.fc-article-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: grid;
  grid-template-columns: 250px minmax(0, 720px);
  gap: 56px;
  justify-content: center;
  align-items: start;
}
.fc-article-layout--wide {
  max-width: 1660px;
  grid-template-columns: 300px 250px minmax(0, 720px) 300px;
  gap: 32px;
}
.fc-article-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
.fc-article-farside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
.fc-article-spacer { min-width: 0; }
.fc-toc {
  background: #fff;
  border: 1px solid var(--fc-line);
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: 0 2px 12px rgba(51,0,59,0.05);
}
.fc-toc-title { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fc-muted); margin-bottom: 10px; }
.fc-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.fc-toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--fc-ink);
  font-size: 13.5px;
  line-height: 1.35;
  text-decoration: none;
  border-left: 2px solid transparent;
}
.fc-toc a:hover { background: #f6f1f8; color: #4a0955; text-decoration: none; }
.fc-toc a.fc-toc-active { color: #4a0955; font-weight: 700; border-left-color: #fbd713; background: #faf5fc; }
.fc-toc li.fc-toc-l3 a { padding-left: 22px; font-size: 12.5px; color: var(--fc-muted); }
.fc-share { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-share-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--fc-line);
  background: #fff; color: #4a0955; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 15px; cursor: pointer; transition: background .15s, color .15s;
}
.fc-share-btn:hover { background: #33003b; color: #fbd713; text-decoration: none; }
.fc-side-cta {
  background: linear-gradient(135deg, #33003b, #5c1270);
  color: #fff; border-radius: 14px; padding: 20px;
}
.fc-side-cta h4 { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: #fff; }
.fc-side-cta p { font-size: 13px; color: rgba(255,255,255,0.7); margin: 0 0 14px; line-height: 1.5; }
.fc-side-cta .fc-btn-accent { font-size: 13px; padding: 9px 16px; }

.fc-side-related {
  background: #fff; border: 1px solid var(--fc-line); border-radius: 14px;
  padding: 20px; box-shadow: 0 2px 12px rgba(51,0,59,0.05);
  display: flex; flex-direction: column; gap: 16px;
}
.fc-side-related-title { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fc-muted); }
.fc-side-related-item {
  display: flex; gap: 10px; text-decoration: none; color: inherit;
  padding-bottom: 12px; border-bottom: 1px solid var(--fc-line);
}
.fc-side-related-item:last-child { padding-bottom: 0; border-bottom: 0; }
.fc-side-related-item:hover h5 { color: #4a0955; text-decoration: underline; }
.fc-side-related-media {
  width: 84px; height: 84px; flex-shrink: 0; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #33003b, #5c1270);
}
.fc-side-related-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-side-related-media-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: rgba(251,215,19,0.55); font-size: 22px;
}
.fc-side-related-body { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.fc-side-related-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #8a1f9c; }
.fc-side-related-body h5 {
  font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--fc-ink); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Body typography ---------- */
.fc-article-body {
  font-size: 17.5px;
  line-height: 1.75;
  color: #1f2d44;
  overflow-wrap: anywhere;
}
.fc-article-body > :first-child { margin-top: 0; }
.fc-article-body p { margin: 0 0 1.35em; }
.fc-article-body h2 {
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25;
  color: var(--fc-ink); margin: 2.1em 0 0.7em; scroll-margin-top: 90px;
}
.fc-article-body h3 { font-size: 21px; font-weight: 700; color: var(--fc-ink); margin: 1.7em 0 0.6em; scroll-margin-top: 90px; }
.fc-article-body h4 { font-size: 17.5px; font-weight: 700; color: var(--fc-ink); margin: 1.5em 0 0.5em; scroll-margin-top: 90px; }
.fc-article-body a { color: #4a0955; text-decoration: underline; text-decoration-color: rgba(74,9,85,0.35); text-underline-offset: 3px; }
.fc-article-body a:hover { text-decoration-color: #4a0955; }
.fc-article-body ul, .fc-article-body ol { padding-left: 1.4em; margin: 0 0 1.35em; }
.fc-article-body li { margin-bottom: 0.45em; }
.fc-article-body li::marker { color: #8a1f9c; font-weight: 700; }
.fc-article-body img { max-width: 100%; height: auto; border-radius: 14px; display: block; margin: 1.6em auto; box-shadow: 0 6px 24px rgba(51,0,59,0.1); }
.fc-article-body figure { margin: 1.6em 0; }
.fc-article-body figcaption { text-align: center; font-size: 13px; color: var(--fc-muted); margin-top: -0.8em; }
.fc-article-body blockquote {
  margin: 1.6em 0; padding: 18px 24px;
  border-left: 4px solid #fbd713; background: #fdf9e6; border-radius: 0 12px 12px 0;
  color: #3d2f00; font-size: 17px;
}
.fc-article-body blockquote p:last-child { margin-bottom: 0; }
.fc-article-body pre {
  background: #1b0a1f; color: #f5e9ff; padding: 18px 20px; border-radius: 12px;
  overflow-x: auto; font-size: 14px; line-height: 1.6; margin: 0 0 1.5em;
}
.fc-article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: #f3e8f6; color: #4a0955; padding: 2px 6px; border-radius: 6px; }
.fc-article-body pre code { background: none; color: inherit; padding: 0; }
.fc-article-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: 15px; display: block; overflow-x: auto; }
.fc-article-body th, .fc-article-body td { border: 1px solid var(--fc-line); padding: 10px 14px; text-align: left; vertical-align: top; }
.fc-article-body th { background: #f6f1f8; color: #33003b; font-weight: 700; }
.fc-article-body tr:nth-child(even) td { background: #fafbfd; }
.fc-article-body hr { border: 0; border-top: 1px solid var(--fc-line); margin: 2.4em 0; }
.fc-article-body iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; margin: 1.6em 0; }
.fc-article-body[dir="rtl"] { text-align: right; font-family: 'Cairo', sans-serif; }
.fc-article-body[dir="rtl"] ul, .fc-article-body[dir="rtl"] ol { padding-left: 0; padding-right: 1.4em; }
.fc-article-body[dir="rtl"] blockquote { border-left: 0; border-right: 4px solid #fbd713; border-radius: 12px 0 0 12px; }

.fc-article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--fc-line); }
.fc-tag { background: #fff; border: 1px solid var(--fc-line); border-radius: 8px; padding: 6px 12px; font-size: 13px; color: #4a0955; font-weight: 600; text-decoration: none; }
.fc-tag:hover { background: #f3e8f6; text-decoration: none; color: #33003b; }

/* FAQ */
.fc-faq { margin-top: 48px; }
.fc-faq h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--fc-ink); margin: 0 0 18px; }
.fc-faq details {
  background: #fff; border: 1px solid var(--fc-line); border-radius: 14px;
  padding: 0 22px; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(51,0,59,0.04);
}
.fc-faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 16.5px; color: var(--fc-ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.fc-faq summary::-webkit-details-marker { display: none; }
.fc-faq summary::after { content: '+'; font-size: 22px; color: #8a1f9c; font-weight: 400; transition: transform .2s; }
.fc-faq details[open] summary::after { transform: rotate(45deg); }
.fc-faq details > div { padding: 0 0 20px; color: #3b4a63; line-height: 1.7; font-size: 16px; white-space: pre-line; }

/* Author box */
.fc-author-box {
  margin-top: 44px; background: #fff; border: 1px solid var(--fc-line); border-radius: 16px;
  padding: 24px 26px; display: flex; gap: 18px; align-items: center;
}
.fc-author-box .fc-avatar { width: 56px; height: 56px; font-size: 20px; }
.fc-author-box strong { display: block; font-size: 16px; color: var(--fc-ink); }
.fc-author-box span { font-size: 14px; color: var(--fc-muted); }

/* Related */
.fc-related { max-width: 1160px; margin: 0 auto; padding: 0 24px 72px; }
.fc-related-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.fc-related-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--fc-ink); margin: 0; }
.fc-related-head a { color: #4a0955; font-weight: 700; font-size: 14px; text-decoration: none; }
.fc-related-head a:hover { text-decoration: underline; }

/* Reading progress */
.fc-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: #fbd713; z-index: 999; transition: width .1s linear; }

.fc-preview-banner {
  background: #fff3cd; color: #7a5a00; border-bottom: 1px solid #f5d76e;
  text-align: center; padding: 9px 16px; font-size: 13.5px; font-weight: 600;
}

/* Language switcher (shared pattern) */
.fc-lang-switcher {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 2px; z-index: 9999;
  background: #2d0035; border-radius: 10px 0 0 10px; padding: 6px 4px;
  box-shadow: -2px 0 12px rgba(0,0,0,0.25);
}
.fc-lang-btn {
  background: none; border: none; color: rgba(255,255,255,0.55); font-size: 11px; font-weight: 700;
  font-family: 'Inter', sans-serif; cursor: pointer; padding: 6px 8px; border-radius: 6px; letter-spacing: 0.04em;
}
.fc-lang-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.fc-lang-btn--active { color: #fbd713 !important; }
[dir="rtl"] .fc-lang-switcher { right: auto; left: 0; border-radius: 0 10px 10px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1450px) {
  .fc-article-layout--wide {
    max-width: 1160px;
    grid-template-columns: 250px minmax(0, 720px);
    gap: 56px;
  }
  .fc-article-farside { grid-column: 1 / -1; order: -1; margin-bottom: 8px; }
  .fc-article-spacer { display: none; }
}
@media (max-width: 1024px) {
  .fc-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-article-layout, .fc-article-layout--wide { grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 800px; }
  .fc-article-side, .fc-article-farside { position: static; }
  .fc-toc { order: -1; }
  .fc-article-farside { order: -1; }
}
@media (max-width: 640px) {
  .fc-blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .fc-blog-hero { padding: 52px 20px 56px; }
  .fc-blog-grid-wrap { padding: 36px 16px 16px; }
  .fc-blog-filters { padding: 0 16px; }
  .fc-blog-cta { padding: 0 16px; }
  .fc-blog-cta-inner { padding: 28px 24px; }
  .fc-article-top { padding: 28px 16px 96px; }
  .fc-article-cover { padding: 0 16px; margin-top: -72px; }
  .fc-article-cover img, .fc-article-cover-placeholder { border-radius: 14px; }
  .fc-article-layout { padding: 32px 16px 48px; }
  .fc-article-body { font-size: 16.5px; }
  .fc-article-body h2 { font-size: 24px; }
  .fc-related { padding: 0 16px 56px; }
  .fc-lang-switcher {
    right: auto; top: auto; bottom: 14px; left: 50%; transform: translateX(-50%);
    flex-direction: row; border-radius: 999px; padding: 5px 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  }
}
