/* RTL (Arabic) version - generated from the English stylesheet with rtlcss, plus Arabic font and no letter-spacing. Re-generate instead of hand-editing. */
/* ================= shared tokens, repeated per root like the rest of the site ================= */
#sgcs-hero{
  --navy:#16294a; --navy-2:#1c3153; --navy-deep:#0c1830;
  --teal:#17a2ac; --teal-light:#2dc6cb; --teal-deep:#0f7c84;
  --mint:#00bfad; --ink:#182338;
  font-family:'Inter','IBM Plex Sans Arabic',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  box-sizing:border-box;
  position:relative; overflow:hidden; color:#eef2f9;
  background:linear-gradient(-172deg, var(--navy) 0%, var(--navy-2) 52%, var(--navy-deep) 100%);
  padding:96px 0;
}
#sgcs-hero *,#sgcs-hero *::before,#sgcs-hero *::after{box-sizing:inherit;}
#sgcs-hero h1{font-family:'Anek Latin','IBM Plex Sans Arabic','Inter','IBM Plex Sans Arabic',sans-serif; font-weight:700; margin:0; color:#fff; letter-spacing:0;}
#sgcs-hero p{margin:0;}
#sgcs-hero img{max-width:100%; display:block;}
#sgcs-hero .sgcs-wrap{max-width:1180px; margin:0 auto; padding:0 28px; position:relative; z-index:1;}

#sgcs-hero .sgcs-noise{
  position:absolute; inset:0; opacity:.4; pointer-events:none; mix-blend-mode:overlay;
  background-image:radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size:3px 3px;
}
#sgcs-hero .sgcs-kick{
  display:inline-flex; align-items:center; gap:9px; font-size:12.5px; font-weight:700;
  letter-spacing:0; text-transform:uppercase; color:var(--teal-light); margin-bottom:20px;
}
#sgcs-hero .sgcs-kick::before{content:""; width:22px; height:1.5px; background:var(--teal-light);}
#sgcs-hero h1{font-size:clamp(30px,4vw,46px); max-width:16ch; line-height:1.1;}
#sgcs-hero .sgcs-hero-lead{font-size:16px; color:#b7c4da; max-width:52ch; margin-top:20px; line-height:1.65;}

#sgcs-hero .sgcs-hero-main{max-width:640px;}

@media (max-width:640px){
  #sgcs-hero .sgcs-wrap{padding:0 22px;}
}

/* ================= FILTER SIDEBAR + GRID ================= */
#sgcs-body{
  --teal:#17a2ac; --teal-deep:#0f7c84; --ink:#182338; --grey:#616d80; --grey-soft:#8892a1;
  --line:#dde2ea; --line-strong:#c7cedb; --paper:#f2f4f8; --card:#ffffff;
  font-family:'Inter','IBM Plex Sans Arabic',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  box-sizing:border-box; background:var(--paper);
  line-height:normal;
}
#sgcs-body *,#sgcs-body *::before,#sgcs-body *::after{box-sizing:inherit;}
#sgcs-body h2,#sgcs-body h3{font-family:'Anek Latin','IBM Plex Sans Arabic','Inter','IBM Plex Sans Arabic',sans-serif; font-weight:600; margin:0; color:var(--ink);}
#sgcs-body p{margin:0; color:var(--grey); line-height:1.65;}
#sgcs-body a{text-decoration:none; color:inherit;}
#sgcs-body button{font-family:inherit; cursor:pointer;}
#sgcs-body img{max-width:100%; display:block;}
#sgcs-body .sgcs-wrap{max-width:1180px; margin:0 auto; padding:0 28px;}
#sgcs-body .sgcs-body-pad{padding:60px 0 20px;}

#sgcs-body .sgcs-layout{display:grid; grid-template-columns:270px 1fr; gap:48px; align-items:start;}
/* top clears the fixed 78px site header (+32px breathing room), so the
   sticky panel doesn't scroll up underneath it. */
#sgcs-body .sgcs-filter{position:sticky; top:110px; align-self:start; background:var(--card); border:1px solid var(--line); border-radius:16px; padding:24px;}
#sgcs-body .sgcs-filter-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:16px;}
/* The drawer-only header (duplicate "Filter by" + close button) is for the
   mobile slide-in panel - hidden by default, shown again inside the mobile
   media query below. */
#sgcs-body .sgcs-filter-drawer-head{display:none;}
#sgcs-body .sgcs-filter-head h4{font-size:14px; font-weight:700; letter-spacing:0; color:var(--ink);}
#sgcs-body .sgcs-filter-reset{font-size:12.5px; font-weight:600; color:var(--teal-deep); background:none; border:none; padding:0;}
#sgcs-body .sgcs-filter-reset:hover{text-decoration:underline;}
#sgcs-body .sgcs-filter-toggle{display:none;}
#sgcs-body .sgcs-search{position:relative; margin-bottom:22px;}
#sgcs-body .sgcs-search input{
  width:100%; padding:10px 36px 10px 14px; border:1px solid var(--line); border-radius:10px;
  font-size:13.5px; font-family:inherit; background:var(--paper); color:var(--ink);
}
#sgcs-body .sgcs-search input:focus{outline:2px solid var(--teal); outline-offset:-1px;}
#sgcs-body .sgcs-search svg{position:absolute; right:11px; top:50%; transform:translateY(-50%); width:15px; height:15px; stroke:var(--grey-soft); fill:none; stroke-width:2;}
#sgcs-body .sgcs-facet{margin-bottom:22px;}
#sgcs-body .sgcs-facet:last-child{margin-bottom:0;}
#sgcs-body .sgcs-facet-label{font-size:11px; font-weight:700; letter-spacing:0; text-transform:uppercase; color:var(--grey-soft); margin-bottom:12px;}
#sgcs-body .sgcs-check{display:flex; align-items:center; gap:10px; padding:6px 0; font-size:13.5px; line-height:1.5; cursor:pointer; color:var(--ink);}
#sgcs-body .sgcs-check input{accent-color:var(--teal); width:15px; height:15px; flex:none;}
#sgcs-body .sgcs-check.is-zero{color:var(--grey-soft);}

#sgcs-body .sgcs-results-head{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:22px; flex-wrap:wrap; gap:10px;}
#sgcs-body .sgcs-results-head h2{font-size:24px;}
#sgcs-body .sgcs-results-count{font-size:13.5px; color:var(--grey-soft);}
#sgcs-body .sgcs-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
#sgcs-body .sgcs-card{
  background:var(--card); border:1px solid var(--line); border-radius:16px; overflow:hidden;
  display:flex; flex-direction:column; transition:transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s ease, border-color .2s ease;
}
#sgcs-body .sgcs-card:hover{transform:translateY(-3px); box-shadow:0 18px 34px -18px rgba(20,37,63,.28); border-color:transparent;}
#sgcs-body .sgcs-card.is-hidden{display:none;}
#sgcs-body .sgcs-card-img{aspect-ratio:16/10; overflow:hidden; background:var(--paper); position:relative;}
#sgcs-body .sgcs-card-img > img{width:100%; height:100%; object-fit:cover;}
#sgcs-body .sgcs-card-logo{
  position:absolute; right:14px; bottom:-18px; width:132px; height:64px; border-radius:12px;
  background:var(--card); border:1px solid var(--line); box-shadow:0 10px 22px -8px rgba(20,37,63,.28);
  display:flex; align-items:center; justify-content:center; padding:8px 12px;
}
#sgcs-body .sgcs-card-logo img{width:100%; height:100%; object-fit:contain;}
#sgcs-body .sgcs-card-body{padding:32px 22px 22px; display:flex; flex-direction:column; gap:10px; flex:1;}
#sgcs-body .sgcs-card-tags{display:flex; flex-wrap:wrap; gap:6px;}
#sgcs-body .sgcs-tag{font-size:11px; font-weight:600; color:var(--teal-deep); background:color-mix(in srgb, var(--teal) 12%, transparent); padding:4px 10px; border-radius:99px;}
#sgcs-body .sgcs-card h3{font-size:17px; line-height:1.3;}
#sgcs-body .sgcs-card-excerpt{font-size:13.5px; flex:1;}
#sgcs-body .sgcs-card-referent{display:flex; align-items:center; gap:10px; padding-top:10px; border-top:1px solid var(--line); font-size:12px; color:var(--grey);}
#sgcs-body .sgcs-card-referent img{width:32px; height:32px; border-radius:50%; object-fit:cover; flex:none;}
#sgcs-body .sgcs-ref-fallback{width:32px; height:32px; border-radius:50%; background:var(--line); flex:none; display:inline-block;}
#sgcs-body .sgcs-card-referent b{color:var(--ink); font-weight:600;}
#sgcs-body .sgcs-card-link{
  display:inline-flex; align-items:center; gap:7px; font-size:13.5px; font-weight:600; color:var(--teal-deep);
  margin-top:2px;
}
#sgcs-body .sgcs-card-link span{transition:transform .18s ease;}
#sgcs-body .sgcs-card-link:hover span{transform:translateX(-3px);}
#sgcs-body .sgcs-empty{display:none; text-align:center; padding:60px 20px; color:var(--grey-soft); font-size:14.5px;}
#sgcs-body .sgcs-empty.is-visible{display:block;}

#sgcs-body .sgcs-filter-reset-drawer{display:none;}

/* Mobile-only pagination (desktop shows every matching story at once, no
   pagination element needed there). */
#sgcs-body .sgcs-pagination{display:none; align-items:center; justify-content:center; gap:6px; margin-top:28px;}
#sgcs-body .sgcs-pagination.is-visible{display:flex;}
#sgcs-body .sgcs-page-btn{
  display:flex; align-items:center; justify-content:center; width:38px; height:38px; padding:0; border-radius:10px;
  border:1px solid var(--line); background:var(--card); flex:none;
}
#sgcs-body .sgcs-page-btn svg{width:16px; height:16px; stroke:var(--ink); fill:none; stroke-width:2;}
#sgcs-body .sgcs-page-btn:disabled{opacity:.35;}
#sgcs-body .sgcs-page-numbers{display:flex; align-items:center; gap:4px;}
#sgcs-body .sgcs-page-num{
  width:34px; height:34px; padding:0; border-radius:9px; border:1px solid transparent; background:none;
  font-size:13.5px; font-weight:600; color:var(--grey);
  display:flex; align-items:center; justify-content:center;
}
#sgcs-body .sgcs-page-num.is-active{background:var(--teal); color:#fff;}

@media (max-width:980px){
  #sgcs-body .sgcs-body-pad{padding:44px 0 64px;}
  #sgcs-body .sgcs-layout{grid-template-columns:1fr;}
  #sgcs-body .sgcs-filter{position:relative; top:0; padding:16px 18px;}
  #sgcs-body .sgcs-filter-head{margin-bottom:0;}
  #sgcs-body .sgcs-filter-reset{display:none;}

  /* Filter panel opens as a slide-in drawer (own header, close button,
     backdrop) instead of an inline accordion - 23 checkboxes stacked above
     the results otherwise pushes every story off-screen, and a drawer reads
     as an actual filter menu rather than a dropdown you scroll past. */
  #sgcs-body .sgcs-filter-toggle{
    display:flex; align-items:center; gap:6px; margin-right:auto; background:none; border:none;
    font-size:13.5px; font-weight:600; color:var(--ink); padding:4px 0;
  }
  #sgcs-body .sgcs-filter-toggle-badge{
    display:none; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 5px;
    border-radius:99px; background:var(--teal); color:#fff; font-size:11px; font-weight:700;
  }
  #sgcs-body .sgcs-filter-toggle-badge.is-visible{display:inline-flex;}
  #sgcs-body .sgcs-filter-toggle-chev{width:16px; height:16px; stroke:var(--grey); fill:none; stroke-width:2;}

  /* The site header is a fixed bar at z-index:1000 (1300 while its own
     mobile nav is open) - the drawer needs to clear both of those to avoid
     sitting underneath it. */
  #sgcs-body .sgcs-filter-backdrop{
    position:fixed; inset:0; background:rgba(10,20,35,.55); opacity:0; pointer-events:none;
    transition:opacity .3s ease; z-index:1390;
  }
  #sgcs-body .sgcs-filter.is-open .sgcs-filter-backdrop{opacity:1; pointer-events:auto;}

  #sgcs-body .sgcs-filter-body{
    position:fixed; top:0; left:0; height:100%; width:86%; max-width:360px;
    background:var(--card); z-index:1400; overflow-y:auto; padding:22px;
    transform:translateX(-100%); transition:transform .32s cubic-bezier(.16,1,.3,1);
    box-shadow:16px 0 40px -20px rgba(10,20,35,.4);
  }
  #sgcs-body .sgcs-filter.is-open .sgcs-filter-body{transform:translateX(0);}

  #sgcs-body .sgcs-filter-drawer-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; padding-bottom:16px; border-bottom:1px solid var(--line);}
  #sgcs-body .sgcs-filter-drawer-head h4{font-size:15px; font-weight:700; color:var(--ink);}
  #sgcs-body .sgcs-filter-close{width:34px; height:34px; padding:0; border-radius:50%; border:none; background:none; display:flex; align-items:center; justify-content:center; flex:none;}
  #sgcs-body .sgcs-filter-close:hover{background:var(--paper);}
  #sgcs-body .sgcs-filter-close svg{width:18px; height:18px; stroke:var(--ink); stroke-width:2; fill:none;}

  #sgcs-body .sgcs-filter-reset-drawer{
    display:block; width:100%; margin-top:22px; padding:12px; text-align:center; border-radius:10px;
    border:1px solid var(--line); background:none; font-size:13.5px; font-weight:600; color:var(--teal-deep);
  }

  #sgcs-body .sgcs-grid{grid-template-columns:repeat(2,1fr); gap:16px;}
}
@media (max-width:640px){
  #sgcs-body .sgcs-wrap{padding-right:22px; padding-left:22px;}
  #sgcs-body .sgcs-grid{grid-template-columns:1fr;}
}

/* ================= CLOSING CTA ================= */
#sgcs-cta{
  --navy:#16294a; --navy-deep:#0c1830; --teal:#17a2ac; --teal-light:#2dc6cb; --mint:#00bfad;
  font-family:'Inter','IBM Plex Sans Arabic',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  box-sizing:border-box;
}
#sgcs-cta *,#sgcs-cta *::before,#sgcs-cta *::after{box-sizing:inherit;}
#sgcs-cta h2{font-family:'Anek Latin','IBM Plex Sans Arabic','Inter','IBM Plex Sans Arabic',sans-serif; font-weight:700; margin:0;}
#sgcs-cta p{margin:0;}
#sgcs-cta a{text-decoration:none; color:inherit;}
#sgcs-cta .sgcs-wrap{max-width:1180px; margin:0 auto; padding:0 28px;}

#sgcs-cta .sgcs-cta-sec{padding:70px 0 100px;}
#sgcs-cta .sgcs-cta-card{
  position:relative; overflow:hidden; border-radius:24px;
  background:
    radial-gradient(700px 400px at 80% 120%, rgba(45,198,203,.25), transparent 55%),
    radial-gradient(600px 400px at 0% -20%, rgba(48,98,165,.30), transparent 55%),
    linear-gradient(-150deg, var(--navy) 0%, var(--navy-deep) 100%);
  color:#fff; padding:58px 48px; text-align:center;
}
#sgcs-cta .sgcs-cta-eyebrow{font-family:'Anek Latin','IBM Plex Sans Arabic',sans-serif; font-weight:700; font-size:12px; letter-spacing:0; text-transform:uppercase; color:var(--teal-light); margin-bottom:14px; display:inline-block;}
#sgcs-cta .sgcs-cta-card h2{color:#fff; font-size:clamp(24px,3.2vw,34px); margin-bottom:14px;}
#sgcs-cta .sgcs-cta-card p{color:#c7d2e2; font-size:16px; max-width:56ch; margin:0 auto 28px;}
#sgcs-cta .sgcs-cta-row{display:flex; gap:14px; flex-wrap:wrap; justify-content:center;}
#sgcs-cta .sgcs-cta-btn{
  display:inline-flex; align-items:center; gap:9px; font-weight:600; font-size:15px;
  padding:13px 26px; border-radius:999px; border:1px solid transparent; cursor:pointer;
  background:linear-gradient(-135deg, var(--teal) 0%, var(--mint) 100%); color:#fff;
  box-shadow:0 10px 30px rgba(23,162,172,.35); transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
#sgcs-cta .sgcs-cta-btn:hover{transform:translateY(-2px); box-shadow:0 16px 38px rgba(23,162,172,.45);}
#sgcs-cta .sgcs-cta-btn-ghost{background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.28); color:#fff; box-shadow:none;}
#sgcs-cta .sgcs-cta-btn-ghost:hover{background:rgba(255,255,255,.13); box-shadow:none;}

#sgcs-cta .sgcs-reveal{opacity:0; transform:translateY(18px); transition:opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);}
#sgcs-cta .sgcs-reveal.in{opacity:1; transform:none;}
@media (prefers-reduced-motion: reduce){ #sgcs-cta .sgcs-reveal{opacity:1; transform:none; transition:none;} }

@media (max-width:640px){
  #sgcs-cta .sgcs-wrap{padding:0 22px;}
  #sgcs-cta .sgcs-cta-row{flex-direction:column;}
  #sgcs-cta .sgcs-cta-btn{width:100%; justify-content:center;}
}

/* Whole card is clickable: the "Read the story" link's ::after stretches over the card. */
#sgcs-body .sgcs-card{position:relative; cursor:pointer;}
#sgcs-body .sgcs-card-link::after{content:""; position:absolute; inset:0; z-index:2; border-radius:inherit;}
#sgcs-body .sgcs-card:hover .sgcs-card-link span{transform:translateX(-3px);}
#sgcs-body .sgcs-card:focus-within{outline:2px solid var(--teal-deep); outline-offset:2px;}
#sgcs-body .sgcs-card-link:focus-visible{outline:none;}
