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

:root {
  --ink: #0a112d;
  --ink-soft: #193f59;
  --green: #61ce70;
  --green-dark: #319c55;
  --sky: #38bdf8;
  --paper: #fbfcfe;
  --paper-warm: #f4f7f4;
  --muted: #69727d;
  --line: #dfe7e2;
  --shadow: 0 22px 60px rgba(10, 17, 45, .11);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'IBM Plex Sans Arabic', 'Cairo', Tahoma, Arial, sans-serif; line-height: 1.9; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.top-strip { color: #dfffe5; background: var(--ink); font-size: .83rem; }
.top-strip-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.top-strip a { color: var(--green); font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 252, 254, .93); border-bottom: 1px solid rgba(223, 231, 226, .85); backdrop-filter: blur(16px); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink); letter-spacing: -.03em; font-size: 1.18rem; line-height: 1.1; }
.brand strong { font-weight: 800; }
.brand small { display: block; color: var(--muted); font-size: .56rem; font-weight: 500; letter-spacing: .02em; margin-top: 5px; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px; color: var(--ink); background: var(--green); font-family: Arial, sans-serif; font-weight: 900; letter-spacing: -.1em; }
.site-nav { display: flex; align-items: center; gap: 20px; margin-inline: auto; font-size: .88rem; font-weight: 600; }
.nav-link { position: relative; padding: 27px 0 22px; color: var(--ink-soft); transition: color .2s ease; }
.nav-link::after { content: ''; position: absolute; right: 0; bottom: 14px; width: 0; height: 3px; border-radius: 99px; background: var(--green); transition: width .2s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { width: 23px; }
.header-actions { display: flex; align-items: center; gap: 13px; }
.header-cta, .button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 45px; border-radius: 13px; padding: 8px 18px; font-weight: 700; font-size: .87rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.header-cta, .button-primary { color: var(--ink); background: var(--green); box-shadow: 0 10px 20px rgba(97, 206, 112, .23); }
.header-cta:hover, .button:hover { transform: translateY(-2px); }
.search-toggle, .menu-toggle { border: 0; background: transparent; color: var(--ink-soft); font: inherit; font-size: .83rem; cursor: pointer; }
.menu-toggle { display: none; }
.search-panel { display: none; padding: 20px 0 24px; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow); }
.search-panel.is-open { display: block; }
.search-panel label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .82rem; }
.search-panel input { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; color: var(--ink); background: var(--paper); font: inherit; outline: none; }
.search-panel input:focus { border-color: var(--green-dark); box-shadow: 0 0 0 4px rgba(97, 206, 112, .15); }
.search-results { display: grid; gap: 6px; margin-top: 13px; }
.search-result { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.search-result small { color: var(--muted); }
.main-content { min-height: 65vh; padding: 44px 0 90px; }
.hero { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; min-height: 570px; padding: 50px 0 68px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 2% 45% 2% -25%; border-radius: 50%; background: radial-gradient(circle, rgba(97,206,112,.18), transparent 65%); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; max-width: 620px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--green-dark); font-weight: 800; font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; }
.eyebrow::before { content: ''; display: inline-block; width: 25px; height: 3px; border-radius: 2px; background: var(--green); }
.hero h1 { max-width: 680px; margin: 18px 0 14px; color: var(--ink); font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: 1.14; letter-spacing: -.075em; }
.hero h1 em { color: var(--green-dark); font-style: normal; }
.hero p { max-width: 530px; color: var(--ink-soft); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button-ghost { color: var(--ink); background: transparent; border: 1px solid var(--ink); }
.hero-proof { display: flex; align-items: center; gap: 13px; margin-top: 32px; color: var(--muted); font-size: .82rem; }
.hero-proof strong { color: var(--ink); }
.hero-panel { position: relative; min-height: 420px; }
.hero-panel::before { content: ''; position: absolute; inset: 7% 4% 5% 10%; border-radius: 37% 63% 48% 52% / 58% 38% 62% 42%; background: var(--ink); transform: rotate(-8deg); box-shadow: 22px 25px 0 rgba(97,206,112,.20); }
.hero-panel::after { content: ''; position: absolute; inset: 0 0 8% 7%; border: 1px solid rgba(56,189,248,.35); border-radius: 47% 53% 57% 43% / 38% 48% 52% 62%; transform: rotate(17deg); }
.hero-panel-card { position: absolute; z-index: 1; inset: 19% 16% 14% 17%; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(255,255,255,.20); border-radius: 28px; padding: 38px; color: #fff; background: linear-gradient(145deg, rgba(25,63,89,.82), rgba(10,17,45,.95)); box-shadow: 0 25px 60px rgba(10,17,45,.27); }
.panel-label { color: var(--green); font-size: .76rem; font-weight: 700; }
.hero-panel-card strong { margin: 12px 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.25; letter-spacing: -.06em; }
.panel-line { width: 74px; height: 4px; border-radius: 99px; background: var(--sky); margin: 11px 0 18px; }
.hero-panel-card small { color: #d4e7eb; font-size: .8rem; }
.orbit-one, .orbit-two { position: absolute; z-index: 2; border-radius: 50%; }
.orbit-one { top: 8%; left: 15%; width: 20px; height: 20px; background: var(--green); box-shadow: 0 0 0 10px rgba(97,206,112,.16); }
.orbit-two { right: 10%; bottom: 14%; width: 12px; height: 12px; background: var(--sky); box-shadow: 0 0 0 8px rgba(56,189,248,.15); }
.content-card { padding: clamp(25px, 5vw, 62px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 30px rgba(10,17,45,.04); }
.home-content { max-width: 1000px; margin: 0 auto; }
.page-card, .post-card { max-width: 930px; margin: 0 auto; }
.content-card h1 { max-width: 820px; margin: 10px 0 30px; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.28; letter-spacing: -.06em; }
.entry-content { color: #263646; font-size: 1.03rem; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--ink); line-height: 1.45; letter-spacing: -.035em; margin-top: 2em; }
.entry-content h2 { font-size: 1.75rem; }
.entry-content h3 { font-size: 1.35rem; }
.entry-content p { margin: 1.05em 0; }
.entry-content a { color: var(--green-dark); text-decoration: underline; text-decoration-color: rgba(49,156,85,.35); text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content li::marker { color: var(--green-dark); }
.entry-content blockquote { margin: 1.6em 0; border-inline-start: 4px solid var(--green); padding: 8px 22px; color: var(--ink-soft); background: var(--paper-warm); border-radius: 12px; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { color: var(--muted); font-size: .78rem; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .9rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 11px; text-align: right; }
.entry-content th { color: var(--ink); background: var(--paper-warm); }
.post-date { color: var(--muted); font-size: .82rem; margin: -18px 0 24px; }
.featured-image { width: 100%; max-height: 410px; object-fit: cover; border-radius: 18px; margin-bottom: 26px; }
.archive-intro { max-width: 760px; padding: 35px 0 50px; }
.archive-intro h1 { margin: 10px 0; font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1.2; letter-spacing: -.07em; }
.archive-intro p { max-width: 650px; color: var(--ink-soft); font-size: 1.08rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-preview { overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 21px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.post-preview:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.preview-media { display: block; height: 170px; overflow: hidden; background: var(--ink); }
.preview-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-preview:hover .preview-media img { transform: scale(1.05); }
.card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--green); font: 900 3.2rem Arial, sans-serif; }
.preview-copy { display: flex; flex: 1; flex-direction: column; padding: 21px; }
.preview-copy .eyebrow { font-size: .67rem; }
.preview-copy h2 { margin: 10px 0 7px; font-size: 1.18rem; line-height: 1.55; }
.preview-copy h2 a:hover { color: var(--green-dark); }
.preview-copy p { flex: 1; margin: 0 0 15px; color: var(--muted); font-size: .85rem; line-height: 1.8; }
.text-link { color: var(--green-dark); font-size: .82rem; font-weight: 800; }
.error-card { max-width: 760px; margin: 70px auto; text-align: center; }
.error-card .eyebrow { justify-content: center; }
.error-card .hero-actions { justify-content: center; }
.site-footer { color: #d5e0e5; background: var(--ink); padding: 65px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 55px; padding-bottom: 52px; }
.brand-footer { color: #fff; }
.brand-footer small { color: #99aeb9; }
.footer-grid p { max-width: 350px; color: #9fb2bb; font-size: .88rem; }
.footer-grid h2 { color: #fff; margin: 4px 0 14px; font-size: .93rem; }
.footer-grid > div > a:not(.brand) { display: block; width: fit-content; color: #a9bdc4; font-size: .85rem; margin: 6px 0; }
.footer-grid > div > a:not(.brand):hover { color: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; color: #728791; border-top: 1px solid rgba(255,255,255,.13); font-size: .73rem; }

@media (max-width: 980px) {
  .header-inner { gap: 17px; }
  .site-nav { gap: 12px; }
  .nav-link { font-size: .78rem; }
  .header-cta { display: none; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 30px; }
  .hero-panel { min-height: 350px; max-width: 600px; width: 100%; margin: 0 auto; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 30px, 600px); }
  .top-strip-inner { min-height: 32px; font-size: .69rem; }
  .top-strip-inner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-inner { min-height: 70px; flex-wrap: wrap; }
  .brand { margin-inline-end: auto; }
  .menu-toggle { display: block; order: 3; width: 100%; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 700; text-align: right; }
  .site-nav { display: none; order: 4; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .site-nav.is-open { display: flex; }
  .nav-link { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .header-actions { gap: 12px; }
  .search-toggle { font-size: .75rem; }
  .hero { min-height: auto; padding: 35px 0 55px; }
  .hero h1 { font-size: clamp(2.6rem, 14vw, 4.3rem); }
  .hero p { font-size: .95rem; }
  .hero-panel { min-height: 290px; }
  .hero-panel-card { inset: 14% 11% 10% 13%; padding: 26px; }
  .hero-panel-card strong { font-size: 2.2rem; }
  .content-card { padding: 24px 18px; border-radius: 17px; }
  .content-card h1 { font-size: 2.15rem; }
  .entry-content { font-size: .95rem; }
  .post-grid { grid-template-columns: 1fr; }
  .preview-media { height: 190px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 35px; }
  .footer-bottom { flex-direction: column; gap: 3px; }
}

/* Article image and header corrections for the static migration */
.bhf-hidden{display:none!important}
.article-cover{display:block;width:100%;max-height:430px;object-fit:cover;border-radius:18px;margin:0 0 26px}
.article-cover-credit{margin:-16px 0 24px;color:var(--muted);font-size:.75rem}
.article-faq{margin-top:2.2em;padding:18px 20px;border:1px solid var(--line);border-radius:16px;background:var(--paper-warm)}
.article-faq details{padding:11px 0;border-bottom:1px solid var(--line)}
.article-faq details:last-child{border-bottom:0}
.article-faq summary{cursor:pointer;color:var(--ink);font-weight:800}

/* Keep the long article archive responsive without hiding its crawlable links. */
.post-preview { content-visibility: auto; contain-intrinsic-size: 0 430px; }
