/* Shared Simorgh Plus shell. Scoped to the child theme header/footer. */
:root {
  --simorgh-primary: #307b9b;
  --simorgh-text: #182230;
  --simorgh-muted: #667085;
  --simorgh-line: rgba(217, 222, 229, 0.82);
}

.simorgh-blog-shell {
  overflow-x: clip;
}

.simorgh-svg-icon {
  width: 1em;
  height: 1em;
  display: block;
  flex: 0 0 auto;
}

.simorgh-skip-link {
  position: fixed;
  top: -100px;
  right: 16px;
  z-index: 100000;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
}
.simorgh-skip-link:focus { top: 16px; }

/* Header — matched to the current Next.js LandingNavBar */
.simorgh-header-wrap {
  position: sticky;
  top: 0;
  z-index: 9990;
  box-sizing: border-box;
  width: 100%;
  padding-top: 12px;
  padding-bottom: 12px;
  pointer-events: none;
  font-family: inherit;
}
body.admin-bar .simorgh-header-wrap { top: 32px; }

/*
 * Typography
 * The blog already loads its Persian font through Elementor.
 * Reuse that exact font instead of defining/loading another font in the shell.
 */
.simorgh-blog-shell .simorgh-header-wrap,
.simorgh-blog-shell .simorgh-mobile-menu,
.simorgh-blog-shell .simorgh-footer {
  font-family: inherit;
}

.simorgh-blog-shell .simorgh-header-wrap a,
.simorgh-blog-shell .simorgh-header-wrap button,
.simorgh-blog-shell .simorgh-mobile-menu a,
.simorgh-blog-shell .simorgh-mobile-menu button,
.simorgh-blog-shell .simorgh-mobile-menu span,
.simorgh-blog-shell .simorgh-mobile-menu strong,
.simorgh-blog-shell .simorgh-footer a,
.simorgh-blog-shell .simorgh-footer h2,
.simorgh-blog-shell .simorgh-footer p,
.simorgh-blog-shell .simorgh-footer span,
.simorgh-blog-shell .simorgh-footer strong,
.simorgh-blog-shell .simorgh-footer small,
.simorgh-blog-shell .simorgh-footer address,
.simorgh-blog-shell .simorgh-footer b {
  font-family: inherit !important;
}

.simorgh-header {
  box-sizing: border-box;
  width: calc(100% - 24px);
  max-width: 1500px;
  height: 68px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  direction: rtl;
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: 20px;
  /* On Next this is white/84 over the dark hero. Use the resulting visual tone
     here so the WordPress header looks the same even over a light blog page. */
  background: rgba(211, 216, 219, 0.94);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  pointer-events: auto;
}

.simorgh-blog-shell .simorgh-header a,
.simorgh-blog-shell .simorgh-header button {
  font-family: inherit !important;
}

.simorgh-header__brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 8px 0;
  text-decoration: none !important;
}
.simorgh-header__brand img {
  width: 104px;
  height: auto;
  display: block;
}

.simorgh-header__desktop-nav { display: none; }

.simorgh-header__actions {
  margin-right: auto;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.simorgh-header__contact-desktop { display: none; }

.simorgh-header__menu-button,
.simorgh-mobile-menu__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #252b34;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.simorgh-header__menu-button:hover,
.simorgh-mobile-menu__close:hover { background: #f3f5f7; }
.simorgh-header__menu-button:active,
.simorgh-mobile-menu__close:active { transform: scale(.95); }
.simorgh-header__menu-button .simorgh-svg-icon,
.simorgh-mobile-menu__close .simorgh-svg-icon { width: 20px; height: 20px; }

/* Mobile menu */
.simorgh-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 10000;
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease, visibility .2s ease;
}
.simorgh-mobile-menu.is-open { visibility: visible; opacity: 1; }
.simorgh-mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(17, 24, 39, 0.25);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.simorgh-mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 360px);
  display: flex;
  flex-direction: column;
  direction: rtl;
  background: #fff;
  box-shadow: -24px 0 70px rgba(15, 23, 42, 0.12);
  transform: translateX(104%);
  transition: transform .25s ease;
}
.simorgh-mobile-menu.is-open .simorgh-mobile-menu__panel { transform: translateX(0); }
.simorgh-mobile-menu__head {
  min-height: 72px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eef0f2;
}
.simorgh-mobile-menu__head a { display: flex; }
.simorgh-mobile-menu__head img { width: 108px; height: auto; }
.simorgh-mobile-menu__body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px;
}
.simorgh-mobile-menu__links { display: flex; flex-direction: column; }
.simorgh-mobile-menu__link,
.simorgh-mobile-menu__contact {
  min-height: 48px;
  padding: 0 4px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #4d5562;
  text-decoration: none;
  font-size: 14px;
  transition: color .2s ease, background-color .2s ease, padding .2s ease;
}
.simorgh-mobile-menu__link:hover,
.simorgh-mobile-menu__contact:hover { padding-inline: 12px; background: #f8f9fa; color: #181c22; }
.simorgh-mobile-menu__link.is-active { color: var(--simorgh-primary); font-weight: 700; }
.simorgh-mobile-menu__link-main { display: inline-flex; align-items: center; gap: 10px; }
.simorgh-mobile-menu__link-main .simorgh-svg-icon { width: 16px; height: 16px; }
.simorgh-mobile-menu__arrow { width: 12px; height: 12px; opacity: .38; }
.simorgh-mobile-menu__contact-wrap { margin-top: 24px; padding-top: 16px; border-top: 1px solid #eef0f2; }
.simorgh-mobile-menu__contact { color: #222832; font-weight: 700; }
.simorgh-mobile-menu__credit {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #eef0f2;
  color: #5d6674;
  font-size: 10px;
  line-height: 1.8;
}
.simorgh-mobile-menu__credit img { width: 58px; height: auto; }
.simorgh-mobile-menu__credit strong { color: #344054; }
.simorgh-mobile-menu__credit small { color: #98a2b3; font-family: sans-serif; }

/* Footer */
.simorgh-footer {
  position: relative;
  margin-top: 64px;
  overflow: hidden;
  direction: rtl;
  background:
    radial-gradient(circle at 88% 8%, rgba(30, 41, 59, 0.10) 0%, rgba(30, 41, 59, 0.045) 18%, rgba(30, 41, 59, 0.012) 34%, transparent 48%),
    radial-gradient(circle at 8% 96%, rgba(100, 116, 139, 0.09) 0%, rgba(100, 116, 139, 0.04) 20%, rgba(100, 116, 139, 0.01) 36%, transparent 50%),
    radial-gradient(circle at 48% 34%, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.34) 22%, transparent 44%),
    linear-gradient(135deg, #eef2f5 0%, #f8fafc 48%, #eef2f5 100%);
}
.simorgh-footer__ambient,
.simorgh-footer__glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.simorgh-footer__glow { position: absolute; display: block; border-radius: 50%; }
.simorgh-footer__glow--white {
  width: 520px; height: 520px; top: -176px; right: 18%; background: rgba(255,255,255,.46); filter: blur(120px);
}
.simorgh-footer__glow--navy {
  width: 340px; height: 340px; top: 22%; left: 36%; background: rgba(51,65,85,.05); filter: blur(120px);
}
.simorgh-footer__glow--slate {
  width: 520px; height: 520px; bottom: -208px; left: 16%; background: rgba(148,163,184,.06); filter: blur(130px);
}
.simorgh-footer__glass {
  background: linear-gradient(135deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.22) 42%, rgba(255,255,255,.14) 100%);
  -webkit-backdrop-filter: blur(38px) saturate(135%);
  backdrop-filter: blur(38px) saturate(135%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), inset 0 -1px 0 rgba(255,255,255,.2);
}
.simorgh-footer__inner {
  position: relative;
  width: 100%;
  max-width: 1041px;
  margin: 0 auto;
  padding: 48px 24px 56px;
}
.simorgh-footer__grid { display: grid; gap: 40px; }
.simorgh-footer__brand { display: flex; align-items: flex-start; gap: 20px; }
.simorgh-footer__brand-logo { width: 76px; height: auto; flex: 0 0 auto; }
.simorgh-footer__brand-copy { min-width: 0; padding-top: 4px; }
.simorgh-footer__brand-copy p {
  max-width: 290px;
  margin: 0;
  color: #465568;
  font-size: 14px;
  line-height: 2;
}
.simorgh-footer__socials { margin-top: 16px; display: flex; align-items: center; gap: 8px; }
.simorgh-footer__socials a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
  color: #3f4c5e;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 6px 18px rgba(45,71,91,.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform .2s ease, color .2s ease, background-color .2s ease;
}
.simorgh-footer__socials a:hover { transform: translateY(-2px); background: rgba(255,255,255,.48); color: #1d293d; }
.simorgh-footer__socials .simorgh-svg-icon { width: 16px; height: 16px; }

.simorgh-footer__column h2,
.simorgh-footer__contact h2 {
  margin: 0 0 16px;
  color: #182230;
  font-size: 14px;
  font-weight: 700;
}
.simorgh-footer__links { display: flex; flex-direction: column; gap: 12px; }
.simorgh-footer__links a {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5d6b7c;
  font-size: 13px;
  text-decoration: none;
  transition: color .2s ease;
}
.simorgh-footer__links a:hover { color: #182230; }
.simorgh-footer__links .simorgh-svg-icon { width: 16px; height: 16px; color: #7c8998; }
.simorgh-footer__links a:hover .simorgh-svg-icon { color: #465568; }

.simorgh-footer__contact { font-style: normal; }
.simorgh-footer__contact > a {
  width: fit-content;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.simorgh-footer__contact > a > .simorgh-svg-icon { width: 18px; height: 18px; color: #59697a; }
.simorgh-footer__contact > a > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.simorgh-footer__contact small { color: #8290a0; font-size: 11px; }
.simorgh-footer__contact b { color: #2f3b4b; font-size: 13px; font-weight: 600; }
.simorgh-footer__contact > a:hover b { color: #101828; }

.simorgh-footer__company {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.46);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.simorgh-footer__company-info { display: flex; align-items: center; gap: 16px; }
.simorgh-footer__company-info > img { width: 80px; height: auto; flex: 0 0 auto; }
.simorgh-footer__company-info address {
  min-width: 0;
  padding-right: 16px;
  border-right: 1px solid rgba(255,255,255,.5);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-style: normal;
}
.simorgh-footer__company-info strong { color: #2e3a49; font-size: 13px; }
.simorgh-footer__company-info span { color: #5d6b7c; font-size: 12px; line-height: 2; }
.simorgh-footer__company-info i { margin-inline: 8px; color: #a7b2bf; font-style: normal; }
.simorgh-footer__enamad { width: fit-content; opacity: .86; transition: opacity .2s ease; }
.simorgh-footer__enamad:hover { opacity: 1; }
.simorgh-footer__enamad img { width: auto; height: auto; max-height: 60px; display: block; }

.simorgh-footer__copyright {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.46);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #5d6b7c;
  text-align: center;
  font-size: 12px;
}
.simorgh-footer__copyright p { margin: 0; }
.simorgh-footer__copyright strong { color: #2e3a49; }
.simorgh-blog-shell .simorgh-footer__copyright p[dir="ltr"] { color: #7f8c9b; font-family: Arial, sans-serif !important; font-size: 11px; }

@media (min-width: 640px) {
  .simorgh-header {
    width: calc(100% - 32px);
    height: 72px;
    padding-inline: 24px;
  }
  .simorgh-header__brand img { width: 112px; }
}

@media (min-width: 1280px) {
  .simorgh-header-wrap {
    position: sticky;
    top: 0;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  body.admin-bar .simorgh-header-wrap { top: 32px; }

  .simorgh-header {
    width: calc(100% - 32px);
    height: 76px;
    margin-top: 0;
    padding-inline: 28px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-radius: 24px;
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(211, 216, 219, 0.94);
  }

  .simorgh-header__brand img { width: 122px; }

  .simorgh-header__desktop-nav {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .simorgh-header__desktop-nav {
    gap: 20px;
  }

  .simorgh-blog-shell .simorgh-header__nav-link {
    position: relative;
    height: 44px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    color: #636b78 !important;
    text-decoration: none !important;
    white-space: nowrap;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    letter-spacing: -.01em;
    transition: color .2s ease, opacity .2s ease;
  }
  .simorgh-blog-shell .simorgh-header__nav-link:hover {
    color: #171b22 !important;
  }
  .simorgh-blog-shell .simorgh-header__nav-link.is-active {
    color: var(--simorgh-primary) !important;
    font-weight: 700 !important;
  }

  .simorgh-header__actions { margin-right: 0; }
  .simorgh-header__contact-desktop {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .simorgh-header__divider {
    width: 1px;
    height: 20px;
    background: rgba(217, 222, 229, 0.80);
  }
  .simorgh-blog-shell .simorgh-header__contact {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #242a33 !important;
    text-decoration: none !important;
    white-space: nowrap;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    transition: color .2s ease;
  }
  .simorgh-blog-shell .simorgh-header__contact:hover {
    color: var(--simorgh-primary) !important;
  }
  .simorgh-header__contact-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f3f5f8;
    color: #596170;
    transition: transform .2s ease, color .2s ease, background-color .2s ease;
  }
  .simorgh-header__contact-icon .simorgh-svg-icon { width: 12px; height: 12px; }
  .simorgh-header__contact:hover .simorgh-header__contact-icon {
    transform: translateX(-2px);
    color: var(--simorgh-primary);
    background: rgba(48, 123, 155, .08);
  }

  .simorgh-header__menu-button { display: none; }
  .simorgh-mobile-menu { display: none !important; }

  .simorgh-footer__inner { padding-inline: 0; }
  .simorgh-footer__grid { grid-template-columns: 1.35fr .8fr .8fr 1.05fr; gap: 40px; }
  .simorgh-footer__brand-logo { width: 86px; }
  .simorgh-footer__company { flex-direction: row; align-items: center; justify-content: space-between; }
  .simorgh-footer__company-info > img { width: 88px; }
  .simorgh-footer__copyright { flex-direction: row; align-items: center; justify-content: space-between; text-align: right; }
}

@media (min-width: 1536px) {
  .simorgh-header__desktop-nav { gap: 28px; }
  .simorgh-blog-shell .simorgh-header__nav-link { font-size: 14px !important; }
}

@media (max-width: 782px) {
  body.admin-bar .simorgh-header-wrap { top: 46px; }
}
