/* Contextual hero based on the homepage's approved kf-hero design.
   Full homepage hero and footer are NOT altered. */
body.kads-unified-site:not(.home) .kads-context-hero,
body.kads-unified-site.home:not(.page-id-18366) .kads-context-hero{
  position:relative!important;isolation:isolate;z-index:2;width:100%!important;
  max-width:none!important;min-height:0!important;margin:0!important;padding:18px 24px 26px!important;
  background:#f7f5f0!important;color:#141414!important;overflow:hidden;
  font:400 16px/1.6 "IBM Plex Sans Arabic",Tahoma,Arial,sans-serif!important;
  box-sizing:border-box!important;direction:rtl;text-align:right;
}
.kads-context-hero *,.kads-context-hero *::before,.kads-context-hero *::after{box-sizing:border-box}
.kads-context-hero .kads-hero-beam{
  position:absolute;z-index:-1;pointer-events:none;left:50%;top:-160px;width:1100px;height:720px;margin-left:-550px;
  background:radial-gradient(38% 55% at 50% 0%,rgba(255,255,255,.95),transparent 70%),conic-gradient(from 180deg at 50% 0%,rgba(247,245,240,0) 158deg,rgba(255,252,244,.85) 172deg,rgba(255,252,244,.85) 188deg,rgba(247,245,240,0) 202deg);
}
.kads-context-hero .kads-hero-header{position:relative!important;z-index:5;max-width:1200px!important;width:100%!important;min-height:47px;margin:0 auto!important;padding:0!important;display:flex!important;align-items:center;justify-content:space-between;gap:14px;direction:rtl;}
.kads-context-hero .kads-hero-brand{display:inline-flex!important;flex:0 0 auto;align-items:center;gap:9px;text-decoration:none!important;color:#141414!important;white-space:nowrap;font:700 17px/1.4 "IBM Plex Sans Arabic",sans-serif!important;}
.kads-context-hero .kads-hero-logo{height:40px;width:40px;display:inline-flex;align-items:center;justify-content:center;background:#141414;border-radius:10px;overflow:hidden;}
.kads-context-hero .kads-hero-logo img{width:36px;height:36px;object-fit:contain;display:block;}
.kads-context-hero .kf-dot{color:#a94332!important;}
.kads-context-hero .kads-hero-nav{position:static!important;display:flex!important;gap:3px;align-items:center;flex:0 1 auto;max-width:100%;min-height:47px;padding:4px!important;background:rgba(251,250,247,.85);border:1px solid #e7e3da;border-radius:999px;overflow-x:auto;scrollbar-width:thin;}
.kads-context-hero .kads-hero-nav a{padding:8px 12px!important;display:block!important;white-space:nowrap;text-decoration:none!important;border-radius:999px;font:600 13px/1.5 "IBM Plex Sans Arabic",sans-serif!important;color:#242322!important;background:transparent;}
.kads-context-hero .kads-hero-nav a:hover,.kads-context-hero .kads-hero-nav a[aria-current="page"]{background:#fff!important;box-shadow:0 1px 3px #14141414,0 0 0 1px #eeeae2 inset;}
.kads-context-hero .kads-hero-search{display:flex;align-items:center;flex:0 0 157px;height:44px;max-width:100%;background:#141414;border-radius:999px;padding:0 10px 0 5px;margin:0!important;min-width:0;}
.kads-context-hero .kads-hero-search input{width:100%;min-width:0;height:38px;padding:0 9px;border:0!important;outline:0;background:transparent!important;color:#f7f5f0!important;font:500 13px/1.4 "IBM Plex Sans Arabic",sans-serif!important;text-align:right;box-shadow:none!important;}
.kads-context-hero .kads-hero-search input::placeholder{color:#f7f5f0!important;opacity:.95;}
.kads-context-hero .kads-hero-search button{height:34px;width:34px;flex:0 0 34px;display:grid;place-items:center;background:transparent!important;color:#f7f5f0!important;border:0;border-radius:50%;padding:0;cursor:pointer;}
.kads-context-hero :is(a,button,input):focus-visible{outline:3px solid #a94332!important;outline-offset:3px!important;}
.kads-context-hero .kads-hero-main{display:flex!important;position:relative!important;z-index:2;align-items:center!important;justify-content:center!important;flex-direction:column!important;max-width:1200px;width:100%;margin:0 auto!important;padding:36px 16px 27px!important;text-align:center!important;gap:0;min-height:205px;}
.kads-context-hero .kads-hero-eyebrow{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;max-width:100%;gap:8px;padding:6px 14px!important;margin:0 0 15px!important;border:1px solid #ece8e0;border-radius:999px;background:#ffffffb3;color:#a94332!important;font:500 13px/1.6 "IBM Plex Sans Arabic",sans-serif!important;text-align:center!important;}
.kads-context-hero .kads-eyebrow-dot{width:6px;height:6px;background:#a94332;border-radius:50%;}
.kads-context-hero h1.kads-hero-title{position:relative!important;display:block!important;width:auto!important;max-width:min(960px,100%)!important;margin:0 auto!important;padding:0 0 9px!important;background:transparent!important;border:0!important;color:#141414!important;font:700 clamp(30px,4vw,52px)/1.4 "IBM Plex Sans Arabic",Tahoma,sans-serif!important;text-align:center!important;unicode-bidi:plaintext;overflow-wrap:break-word;text-wrap:balance;}
.kads-context-hero .kads-title-red-rule{position:absolute;bottom:1px;left:35%;width:30%;height:3px;border-radius:10px;background:#a94332;transform:rotate(-2deg);}
.kads-context-hero .kads-hero-description{display:block!important;max-width:780px!important;margin:16px auto 0!important;padding:0!important;text-align:center!important;color:#67635b!important;font:400 clamp(14px,1.55vw,17px)/1.85 "IBM Plex Sans Arabic",sans-serif!important;}
.kads-context-hero .kads-hero-orbit{pointer-events:none;position:absolute;left:clamp(12px,5vw,80px);bottom:14px;color:#141414;opacity:.24;transform:rotate(15deg);}
/* Keep the new hero as the only visible contextual page title. */
body.kads-unified-site:not(.home) article.post-detail>.the_title,
body.kads-unified-site:not(.home) article.page>.the_title,
body.kads-unified-site:not(.home) .kads-page-heading>h1,
body.kads-unified-site:not(.home) .kads-page-heading>.kads-overline,
body.kads-unified-site:not(.home) .ka-info-page .ka-hero h1,
body.kads-unified-site:not(.home) .ka-info-page .ka-hero .ka-eyebrow{display:none!important;}
body.kads-unified-site.home:not(.page-id-18366) .kads-page-heading>h1,
body.kads-unified-site.home:not(.page-id-18366) .kads-page-heading>.kads-overline{display:none!important;}
body.kads-unified-site:not(.home) .kads-page-heading,
body.kads-unified-site.home:not(.page-id-18366) .kads-page-heading{border:0!important;background:transparent!important;padding:0!important;margin:0 0 22px!important;}
/* Hide the duplicate classic navigation only after the new hero is verified. */
body.kads-unified-site:not(.page-id-18366) .page-wrapper > header.general-header {
  display:none!important;
}
body.kads-unified-site:not(.page-id-18366) .page-wrapper > #content {
  margin-top:0!important;
}
@media(max-width:1000px){
 .kads-context-hero .kads-hero-header{flex-wrap:wrap!important;justify-content:space-between;}
 .kads-context-hero .kads-hero-nav{order:3!important;flex:1 0 100%;justify-content:center;}
 .kads-context-hero .kads-hero-main{padding-top:28px!important;}
 .kads-context-hero .kads-hero-orbit{opacity:.14;}
}
@media(max-width:620px){
 body.kads-unified-site .kads-context-hero{padding:12px 13px 21px!important;}
 .kads-context-hero .kads-hero-brand{font-size:15px!important;}
 .kads-context-hero .kads-hero-logo{width:34px;height:34px;}
 .kads-context-hero .kads-hero-logo img{width:30px;height:30px;}
 .kads-context-hero .kads-hero-search{flex-basis:139px;}
 .kads-context-hero .kads-hero-header{gap:10px;}
 .kads-context-hero .kads-hero-nav{max-width:100%;justify-content:start;}
 .kads-context-hero .kads-hero-nav a{padding:8px 11px!important;font-size:12px!important;}
 .kads-context-hero .kads-hero-main{min-height:0;padding:28px 6px 18px!important;}
 .kads-context-hero h1.kads-hero-title{font-size:clamp(27px,7vw,34px)!important;line-height:1.49!important;}
 .kads-context-hero .kads-hero-description{font-size:14px!important;}
 .kads-context-hero .kads-hero-orbit{display:none;}
}
@media(prefers-reduced-motion:reduce){.kads-context-hero *{animation:none!important;transition:none!important}}

/* Responsive grid correction: prevent the original homepage flex rules from
   stretching the shared hero header to hundreds of pixels on mobile. */
.kads-context-hero .kads-hero-header {
 display:grid!important;grid-template-columns:max-content minmax(0,1fr) 157px!important;
 grid-template-areas:"brand nav search"!important;gap:14px!important;
 justify-content:stretch!important;justify-items:stretch!important;align-content:start!important;
 align-items:center!important;height:auto!important;min-height:47px!important;
 flex-direction:row!important;flex-wrap:nowrap!important;
}
.kads-context-hero .kads-hero-brand{grid-area:brand!important;justify-self:start!important;}
.kads-context-hero .kads-hero-nav{grid-area:nav!important;justify-self:center!important;min-width:0!important;max-width:100%!important;flex:none!important;}
.kads-context-hero .kads-hero-search{grid-area:search!important;justify-self:end!important;min-width:0!important;width:157px!important;flex:none!important;}
@media(max-width:1000px){
 .kads-context-hero .kads-hero-header {grid-template-columns:minmax(0,1fr) 157px!important;grid-template-areas:"brand search" "nav nav"!important;gap:10px!important;}
 .kads-context-hero .kads-hero-nav {justify-self:stretch!important;width:100%!important;}
}
@media(max-width:620px){
 body.kads-unified-site:not(.page-id-18366) .kads-context-hero {padding:12px 13px 20px!important;}
 .kads-context-hero .kads-hero-header {grid-template-columns:minmax(0,1fr) 139px!important;gap:9px!important;}
 .kads-context-hero .kads-hero-search {width:139px!important;}
 .kads-context-hero .kads-hero-main {padding-top:23px!important;}
}

/* Ad-resilient hero reading order: Google Auto Ads can inject a legitimate
   .google-auto-placed unit into our navigation container. Do not hide, remove,
   resize or move the ad node; CSS grid only places the existing unit AFTER
   the editorial title instead of before it. */
body.kads-unified-site:not(.page-id-18366) .kads-context-hero {
 display:grid!important;grid-template-columns:max-content minmax(0,1fr) 157px!important;
 grid-template-areas:"brand nav search" "main main main" "ad ad ad"!important;
 column-gap:14px!important;row-gap:0!important;align-items:start!important;
}
.kads-context-hero .kads-hero-header {display:contents!important;}
.kads-context-hero .kads-hero-brand {grid-area:brand!important;align-self:center!important;}
.kads-context-hero .kads-hero-nav {grid-area:nav!important;align-self:center!important;justify-self:center!important;}
.kads-context-hero .kads-hero-search {grid-area:search!important;align-self:center!important;}
.kads-context-hero .kads-hero-main {grid-area:main!important;justify-self:stretch!important;}
.kads-context-hero .kads-hero-header>.google-auto-placed {grid-area:ad!important;justify-self:center!important;align-self:start!important;}
@media(max-width:1000px){
 body.kads-unified-site:not(.page-id-18366) .kads-context-hero {
  grid-template-columns:minmax(0,1fr) 157px!important;
  grid-template-areas:"brand search" "nav nav" "main main" "ad ad"!important;
  row-gap:9px!important;
 }
 .kads-context-hero .kads-hero-nav{width:100%!important;justify-self:stretch!important;}
}
@media(max-width:620px){
 body.kads-unified-site:not(.page-id-18366) .kads-context-hero {
  grid-template-columns:minmax(0,1fr) 139px!important;column-gap:9px!important;
 }
}

/* Direction-safe inline English work titles in Arabic review headings. */
.kads-context-hero .kads-hero-ltr{display:inline-block;direction:ltr;unicode-bidi:isolate;max-width:100%;overflow-wrap:anywhere;white-space:normal;}

/* Bilingual punctuation: keep the final colon on the visual LEFT side of
   an English title, with the name on the same line. Long work names scale
   only on narrow screens to prevent horizontal overflow. */
.kads-context-hero .kads-work-colon{white-space:nowrap;unicode-bidi:isolate;direction:rtl}
@media (max-width:620px){
  .kads-context-hero .kads-work-colon-medium {font-size:clamp(23px,7vw,28px)!important;}
  .kads-context-hero .kads-work-colon-long {font-size:clamp(19px,5.6vw,24px)!important;}
}
