@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Sora:wght@300;400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --blog-blue: #0057ff;
  --blog-aqua: #22d3ee;
  --blog-graphite: #1f2937;
  --blog-muted: #667085;
  --blog-border: #e5eaf0;
  --blog-surface: #f6f8fb;
  font-family: "IBM Plex Sans Arabic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.blog-body {
  margin: 0;
  background: #fff;
  color: var(--blog-graphite);
  font-family: "IBM Plex Sans Arabic", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blog-aqua);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.skip-link {
  position: absolute; top: -4rem; inset-inline-start: 1rem; z-index: 100;
  padding: .65rem 1rem; background: var(--blog-graphite); color: #fff; border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(255 255 255 / 95%); border-bottom: 1px solid var(--blog-border);
  backdrop-filter: blur(16px);
}
.site-header__inner {
  min-height: 78px; max-width: 1280px; margin-inline: auto; padding: .55rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
}
.site-logo { display: inline-flex; flex: 0 0 auto; align-items: center; }
.site-logo img, .footer-brand img { display: block; width: auto; height: 54px; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.desktop-nav a, .mobile-nav a {
  color: var(--blog-graphite); font-size: .92rem; font-weight: 600;
  text-decoration: none; transition: color .18s ease;
}
.desktop-nav a:hover, .mobile-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--blog-blue); }
.header-contact, .mobile-nav__contact, .button-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: .55rem 1.4rem; border-radius: 999px;
  background: var(--blog-blue); color: #fff; font-weight: 700; text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.header-contact:hover, .mobile-nav__contact:hover, .button-primary:hover {
  background: #064bd1; color: #fff; transform: translateY(-1px);
}
.mobile-menu-toggle { display: none; border: 0; background: transparent; color: var(--blog-graphite); font-size: 1.65rem; cursor: pointer; }
.mobile-nav[hidden] { display: none; }
.mobile-nav { display: none; }

.article-main, .blog-index-content { width: min(100% - 2rem, 1080px); margin-inline: auto; }
.article-main { padding-block: 1.3rem 5rem; }
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-block: .35rem 1.5rem;
  color: var(--blog-muted); font-size: .87rem;
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover, .text-link:hover { color: var(--blog-blue); }
.article-layout { max-width: 820px; margin-inline: auto; }
.article-heading { padding-block: 1rem 1.25rem; }
.article-category {
  margin: 0 0 .65rem; color: var(--blog-blue); font-size: .85rem; font-weight: 700;
}
.article-heading h1, .blog-index-hero h1 {
  margin: 0; color: var(--blog-graphite); font-size: clamp(2rem, 4.7vw, 3.55rem);
  font-weight: 700; line-height: 1.3; letter-spacing: -.025em;
}
.article-description { max-width: 720px; margin: 1rem 0; color: #4b5563; font-size: 1.12rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; color: var(--blog-muted); font-size: .9rem; }
.article-cover {
  display: block; width: 100%; height: auto; margin-top: 1.6rem; border-radius: 1.35rem;
  background: linear-gradient(110deg, var(--blog-blue), var(--blog-aqua));
}
.table-of-contents {
  margin-block: 1.5rem 2.2rem; padding: 1.25rem 1.5rem; border: 1px solid var(--blog-border);
  border-radius: 1rem; background: var(--blog-surface);
}
.toc-title { margin: 0 0 .45rem; color: var(--blog-graphite); font-weight: 700; }
.table-of-contents ol { margin: 0; padding-inline-start: 1.35rem; }
.table-of-contents li { padding-block: .12rem; color: var(--blog-blue); }
.table-of-contents a { color: var(--blog-graphite); text-decoration: none; }
.table-of-contents a:hover { color: var(--blog-blue); }
.article-content { font-size: 1.06rem; line-height: 2; }
.article-content h2, .faq-section h2, .related-section h2 {
  margin: 2.5rem 0 .8rem; color: var(--blog-graphite); font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700; line-height: 1.45; scroll-margin-top: 100px;
}
.article-content h3 { margin: 1.5rem 0 .45rem; font-size: 1.22rem; font-weight: 700; line-height: 1.55; }
.article-content p { margin: .8rem 0 1.15rem; }
.article-content ul, .article-content ol { padding-inline-start: 1.5rem; margin: .7rem 0 1.35rem; }
.article-content li { padding-inline-start: .2rem; margin-block: .35rem; }
.article-content li::marker { color: var(--blog-blue); }
.article-content a { color: #0049d7; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.article-content a:hover { color: #0034a5; }
.article-content strong { font-weight: 700; }
.faq-section { margin-top: 2.75rem; }
.faq-section h2 { margin-bottom: .9rem; }
.faq-item { border-bottom: 1px solid var(--blog-border); padding: .9rem .1rem; }
.faq-item summary { cursor: pointer; font-weight: 700; }
.faq-item p { margin: .65rem 0 .1rem; color: #4b5563; }

.article-cta {
  margin-block: 2.5rem; padding: clamp(1.3rem, 4vw, 2.25rem); border-radius: 1.25rem;
  background: linear-gradient(115deg, #0057ff, #147cef 54%, #22d3ee); color: white;
}
.article-cta__eyebrow { margin: 0 0 .35rem; color: rgb(255 255 255 / 82%); font-size: .87rem; font-weight: 600; }
.article-cta__title { margin: 0; font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 700; line-height: 1.45; }
.article-cta > p:not(.article-cta__eyebrow, .article-cta__title) { max-width: 620px; margin: .6rem 0 1.1rem; color: rgb(255 255 255 / 90%); }
.article-cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.article-cta .button-primary { background: #fff; color: var(--blog-blue); }
.button-secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: .55rem 1.25rem; border: 1px solid rgb(255 255 255 / 65%); border-radius: 999px;
  color: white; font-weight: 600; text-decoration: none;
}
.button-secondary:hover { background: rgb(255 255 255 / 12%); }
.related-section { margin-top: 3.2rem; }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.section-heading-row h2 { margin: 0; }
.section-heading-row .article-category { margin-bottom: .2rem; }
.text-link { color: var(--blog-blue); font-weight: 700; text-decoration: none; }
.related-grid, .blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.related-card, .blog-card__link {
  display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--blog-border);
  border-radius: 1rem; background: #fff; color: inherit; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.related-card { padding: 1.15rem; }
.related-card:hover, .blog-card__link:hover {
  transform: translateY(-3px); border-color: rgb(0 87 255 / 28%);
  box-shadow: 0 12px 30px rgb(31 41 55 / 8%);
}
.related-card > span { color: var(--blog-blue); font-size: .8rem; font-weight: 600; }
.related-card h3 { margin: .5rem 0; font-size: 1.1rem; line-height: 1.55; }
.related-card p { margin: 0; color: var(--blog-muted); font-size: .91rem; line-height: 1.7; }

.blog-index-hero { padding: 4.5rem 1rem 3.5rem; background: linear-gradient(115deg, #eff5ff, #fff 62%, #ecfbff); }
.blog-index-hero__inner { width: min(100%, 1080px); margin-inline: auto; }
.blog-index-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.blog-index-hero__inner > p:last-child { max-width: 690px; margin: .8rem 0 0; color: #4b5563; font-size: 1.1rem; }
.blog-index-content { padding-block: 2.5rem 4rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.filter-button {
  min-height: 40px; padding: .45rem .95rem; border: 1px solid var(--blog-border); border-radius: 999px;
  background: white; color: var(--blog-graphite); font: inherit; font-size: .91rem; cursor: pointer;
}
.filter-button:hover, .filter-button.is-active { border-color: var(--blog-blue); background: var(--blog-blue); color: white; }
.results-count { color: var(--blog-muted); font-size: .9rem; }
.blog-card__cover { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--blog-blue); }
.blog-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.05rem 1.15rem 1.2rem; }
.blog-card__meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: var(--blog-muted); font-size: .78rem; }
.blog-card__meta span { color: var(--blog-blue); font-weight: 700; }
.blog-card h2 { margin: .55rem 0; font-size: 1.18rem; line-height: 1.6; }
.blog-card p { flex: 1; margin: 0 0 1rem; color: var(--blog-muted); font-size: .92rem; line-height: 1.75; }
.empty-state { padding: 2rem; text-align: center; color: var(--blog-muted); }
.blog-index-cta { padding: 2rem 1rem; background: var(--blog-surface); text-align: center; }
.blog-index-cta p { margin: 0 0 .8rem; font-size: 1.2rem; font-weight: 700; }

.site-footer { margin-top: 2rem; background: #f3f6fa; border-top: 1px solid var(--blog-border); }
.site-footer__inner, .footer-bottom {
  width: min(100% - 3rem, 1160px); margin-inline: auto; display: flex; align-items: center;
  justify-content: space-between; gap: 2rem;
}
.site-footer__inner { padding-block: 2.4rem; }
.footer-brand { max-width: 360px; }
.footer-brand img { height: 48px; }
.footer-brand p { color: #556070; }
.footer-links { display: flex; flex-wrap: wrap; gap: .7rem 1.15rem; align-items: center; }
.footer-links a, .footer-bottom a { color: #4b5563; font-size: .9rem; text-decoration: none; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--blog-blue); }
.footer-bottom { padding-block: 1rem; border-top: 1px solid var(--blog-border); color: var(--blog-muted); font-size: .84rem; }

@media (max-width: 860px) {
  .desktop-nav, .header-contact { display: none; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
  .mobile-nav:not([hidden]) {
    display: flex; flex-direction: column; gap: .25rem; padding: .35rem 1.5rem 1rem;
    border-top: 1px solid var(--blog-border); background: #fff;
  }
  .mobile-nav a { padding: .6rem .2rem; }
  .mobile-nav .mobile-nav__contact { align-self: flex-start; margin-top: .35rem; padding-inline: 1.2rem; color: #fff; }
  .related-grid, .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .site-header__inner { min-height: 70px; padding-inline: 1rem; }
  .site-logo img { height: 48px; }
  .article-main, .blog-index-content { width: min(100% - 1.25rem, 1080px); }
  .article-main { padding-top: .7rem; }
  .breadcrumbs { padding-bottom: 1rem; font-size: .78rem; }
  .article-heading { padding-top: .5rem; }
  .article-description { font-size: 1rem; }
  .article-cover { border-radius: .9rem; }
  .article-content { font-size: 1rem; }
  .related-grid, .blog-grid { grid-template-columns: 1fr; }
  .blog-index-hero { padding-block: 3.2rem 2.6rem; }
  .section-heading-row { align-items: start; flex-direction: column; }
  .site-footer__inner, .footer-bottom { width: min(100% - 2rem, 1160px); }
  .site-footer__inner { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .footer-links { gap: .5rem .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
