/* Site header, navigation, search controls, and breaking-news ticker. */

/* Modern RTL masthead */
#masthead.reviewnews-header {
  direction: rtl;
  color: var(--elbi-white);
  background: #0d2b52;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 14px rgba(5, 18, 38, 0.12);
}

#masthead.reviewnews-header .top-header,
#masthead.reviewnews-header .header-promotion {
  display: none;
}

#masthead.reviewnews-header .af-middle-header,
#masthead.reviewnews-header #main-navigation-bar {
  padding: 0;
  background: transparent;
}

#masthead.reviewnews-header .af-middle-header > .container-wrapper,
#masthead.reviewnews-header #main-navigation-bar > .container-wrapper {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
}

#masthead.reviewnews-header .af-middle-container,
#masthead.reviewnews-header .bottom-bar-flex {
  height: 100%;
  display: flex;
  align-items: center;
}

#masthead.reviewnews-header .af-middle-container .logo {
  width: 100%;
  min-width: 0;
  padding: 0;
  text-align: right;
}

#masthead.reviewnews-header .site-branding {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  margin: 0;
  padding: 0;
}

#masthead.reviewnews-header .custom-logo-link {
  grid-row: 1 / 3;
  align-self: center;
}

#masthead.reviewnews-header img.custom-logo {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

#masthead.reviewnews-header .site-title,
#masthead.reviewnews-header .site-description {
  position: static;
  display: block;
  grid-column: 2;
  width: auto;
  margin: 0;
  color: var(--elbi-white);
  text-align: right;
  white-space: nowrap;
}

#masthead.reviewnews-header .site-title {
  align-self: end;
  font-family: var(--elbi-font-arabic);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

#masthead.reviewnews-header .site-title a,
#masthead.reviewnews-header .site-title a:visited,
#masthead.reviewnews-header .site-description {
  color: var(--elbi-white);
}

#masthead.reviewnews-header .site-description {
  align-self: start;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

#masthead.reviewnews-header .offcanvas-navigaiton,
#masthead.reviewnews-header .af-bottom-head-nav,
#masthead.reviewnews-header .navigation-container,
#masthead.reviewnews-header nav.main-navigation {
  min-width: 0;
}

#masthead.reviewnews-header .elbilad-header-social .social-navigation > ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

#masthead.reviewnews-header .elbilad-header-social li {
  margin: 0;
}

#masthead.reviewnews-header .elbilad-header-social a {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--elbi-white);
  line-height: 1;
}

#masthead.reviewnews-header .elbilad-header-social a:hover,
#masthead.reviewnews-header .elbilad-header-social a:focus-visible {
  border-color: var(--elbi-red);
  background: var(--elbi-red);
  color: var(--elbi-white);
}

#masthead.reviewnews-header #main-navigation-bar .af-search-wrap {
  width: 38px;
  margin: 0;
}

#masthead.reviewnews-header #main-navigation-bar .search-icon,
#masthead.reviewnews-header #main-navigation-bar #aft-dark-light-mode-wrap a {
  display: flex;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--elbi-white);
  line-height: 1;
}

#masthead.reviewnews-header #main-navigation-bar .search-icon:hover,
#masthead.reviewnews-header #main-navigation-bar .search-icon:focus-visible {
  border-color: var(--elbi-red);
  background: var(--elbi-red);
}

#masthead.reviewnews-header .search-watch .af-search-form {
  right: auto;
  left: 0;
  width: min(375px, calc(100vw - var(--elbi-page-gutter) - var(--elbi-page-gutter)));
}

body.rtl #masthead.reviewnews-header #main-navigation-bar.aft-sticky-navigation {
  position: static;
  top: auto;
  width: auto;
  z-index: 9;
  opacity: 1;
  transform: none;
  animation: none;
  box-shadow: none;
}

@media screen and (min-width: 992px) {
  body.rtl #masthead.reviewnews-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    display: grid;
    grid-template-columns:
      max(var(--elbi-page-gutter), calc((100% - var(--elbi-container)) / 2))
      240px
      minmax(0, 1fr)
      max(var(--elbi-page-gutter), calc((100% - var(--elbi-container)) / 2));
    min-height: 84px;
    padding: 0 !important;
  }

  body.admin-bar.rtl #masthead.reviewnews-header {
    top: 32px;
  }

  body.rtl #masthead.reviewnews-header .af-middle-header {
    grid-column: 2;
    min-width: 0;
    min-height: 84px;
  }

  body.rtl #masthead.reviewnews-header #main-navigation-bar {
    position: relative;
    grid-column: 3;
    min-width: 0;
  }

  body.rtl #masthead.reviewnews-header .af-middle-container,
  body.rtl #masthead.reviewnews-header .bottom-bar-flex {
    min-height: 84px;
  }

  body.rtl #masthead.reviewnews-header .af-middle-container {
    padding-inline-end: 20px;
  }

  body.rtl #main-navigation-bar .bottom-bar-flex {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    direction: rtl;
  }

  body.rtl #main-navigation-bar .offcanvas-navigaiton,
  body.rtl #main-navigation-bar .af-bottom-head-nav,
  body.rtl #main-navigation-bar .navigation-container,
  body.rtl #main-navigation-bar nav.main-navigation,
  body.rtl #main-navigation-bar .main-navigation > .menu {
    display: flex;
    width: 100%;
    align-items: center;
  }

  body.rtl #main-navigation-bar .menu-desktop,
  body.rtl #main-navigation-bar .menu-desktop > ul,
  body.rtl #main-navigation-bar ul#primary-menu {
    display: flex;
    position: static;
    width: 100%;
    align-items: stretch;
    flex-wrap: nowrap;
    justify-content: center;
    white-space: nowrap;
  }

  body.rtl #masthead.reviewnews-header #main-navigation-bar .main-navigation span.toggle-menu {
    display: none !important;
  }

  body.rtl #main-navigation-bar .main-navigation .menu-desktop > li::after,
  body.rtl #main-navigation-bar .main-navigation .menu-desktop > ul > li::after {
    display: none;
  }

  body.rtl #main-navigation-bar .main-navigation .menu-desktop > li > a,
  body.rtl #main-navigation-bar .main-navigation .menu-desktop > ul > li > a {
    display: flex;
    min-height: 84px;
    align-items: center;
    padding: 0 12px;
    border-bottom: 3px solid transparent;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--elbi-font-arabic);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.3;
  }

  body.rtl #main-navigation-bar .main-navigation .menu-desktop > li:hover > a,
  body.rtl #main-navigation-bar .main-navigation .menu-desktop > li.current-menu-item > a,
  body.rtl #main-navigation-bar .main-navigation .menu-desktop > li.current_page_item > a {
    border-bottom-color: var(--elbi-red);
    background: transparent;
    color: var(--elbi-white);
  }

  body.rtl #main-navigation-bar .search-watch {
    display: flex;
    box-sizing: border-box;
    width: 240px;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    padding-inline: 12px 0;
    direction: ltr;
  }

  body.rtl .main-navigation .menu > ul > li > ul,
  body.rtl .main-navigation .menu ul ul {
    background: var(--elbi-white);
    border: 1px solid var(--elbi-border);
    border-radius: var(--elbi-radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  }

  body.rtl .main-navigation ul .sub-menu li,
  body.rtl .main-navigation ul .sub-menu li a {
    color: var(--elbi-charcoal);
    text-align: right;
  }
}

@media screen and (max-width: 991px) {
  body.rtl #masthead.reviewnews-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    display: grid;
    grid-template-columns:
      var(--elbi-page-gutter)
      minmax(0, 1fr)
      auto
      var(--elbi-page-gutter);
    min-height: 72px;
    padding: 0 !important;
  }

  body.admin-bar.rtl #masthead.reviewnews-header {
    top: 46px;
  }

  body.rtl #masthead.reviewnews-header .af-middle-header {
    grid-column: 2;
    min-width: 0;
    min-height: 72px;
  }

  body.rtl #masthead.reviewnews-header #main-navigation-bar {
    position: static;
    grid-column: 3;
    width: auto;
    min-width: 0;
  }

  body.rtl #masthead.reviewnews-header .af-middle-container,
  body.rtl #masthead.reviewnews-header .bottom-bar-flex {
    min-height: 72px;
  }

  body.rtl #masthead.reviewnews-header .site-branding {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 9px;
  }

  body.rtl #masthead.reviewnews-header img.custom-logo {
    width: 48px;
    height: 48px;
  }

  body.rtl #masthead.reviewnews-header .site-title {
    display: block;
    font-size: 18px;
  }

  body.rtl #masthead.reviewnews-header .site-description {
    display: block;
    font-size: 11px;
  }

  body.rtl #main-navigation-bar .bottom-bar-flex,
  body.rtl #main-navigation-bar .search-watch {
    display: flex;
    align-items: center;
  }

  body.rtl #main-navigation-bar .bottom-bar-flex {
    direction: rtl;
  }

  body.rtl #masthead #main-navigation-bar .main-navigation .toggle-menu {
    display: block;
    width: 44px;
    padding: 0;
  }

  body.rtl #main-navigation-bar .main-navigation .toggle-menu a {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  body.rtl #main-navigation-bar .search-watch {
    gap: 4px;
    padding: 0;
    direction: ltr;
  }

  body.rtl #masthead.reviewnews-header .elbilad-header-social a {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  body.rtl #masthead.reviewnews-header .elbilad-header-social .social-navigation > ul {
    gap: 4px;
  }

  body.rtl #main-navigation-bar .main-navigation .menu-mobile {
    position: absolute;
    top: 100%;
    right: var(--elbi-page-gutter);
    left: var(--elbi-page-gutter);
    width: auto;
    max-height: calc(100vh - 72px);
    direction: rtl;
    text-align: right;
  }

  body.rtl #main-navigation-bar .main-navigation .menu-mobile > li > a {
    border-inline-start: 3px solid transparent;
  }

  body.rtl #main-navigation-bar .main-navigation .menu-mobile > li.current-menu-item > a,
  body.rtl #main-navigation-bar .main-navigation .menu-mobile > li.current_page_item > a {
    border-inline-start-color: var(--elbi-red);
    color: var(--elbi-red);
  }
}

/* Breaking-news ticker */
.home.rtl .banner-exclusive-posts-wrapper .exclusive-now {
  float: right;
}

.home .banner-exclusive-posts-wrapper {
  margin-top: 10px;
}

.home .banner-exclusive-posts-wrapper .exclusive-posts {
  display: flex;
  height: 44px;
  overflow: hidden;
  border: 1px solid var(--elbi-border);
  border-radius: var(--elbi-radius);
  box-shadow: var(--elbi-shadow);
}

.home .banner-exclusive-posts-wrapper .exclusive-now {
  flex: none;
  min-height: 42px;
  padding: 0 14px;
  line-height: 1.4;
}

.home .banner-exclusive-posts-wrapper .exclusive-now span {
  margin: 0;
  white-space: nowrap;
}

.home .banner-exclusive-posts-wrapper .aft-box-ripple {
  display: none;
}

.home .banner-exclusive-posts-wrapper .exclusive-slides {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
}

.home .banner-exclusive-posts-wrapper .marquee a {
  min-height: 42px;
  margin-inline-end: 18px;
  padding: 0 12px;
  direction: rtl;
  line-height: 1.5;
  white-space: nowrap;
}

.home .banner-exclusive-posts-wrapper .marquee a span.circle-marq,
.home .banner-exclusive-posts-wrapper .marquee a img {
  width: 30px;
  height: 30px;
  margin-left: 10px;
  border-radius: 4px;
}

@media screen and (min-width: 1280px) {
  .home .banner-exclusive-posts-wrapper {
    margin-top: 18px;
  }

  .home .banner-exclusive-posts-wrapper .container-wrapper {
    width: calc(100% - 48px);
    max-width: 1688px;
    padding-inline: 0;
  }

  .home .banner-exclusive-posts-wrapper .exclusive-posts {
    height: 58px;
    padding: 5px;
    border-radius: 4px;
  }

  .home .banner-exclusive-posts-wrapper .exclusive-now {
    flex: 0 0 112px;
    width: 112px;
    min-height: 46px;
    padding-inline: 10px;
  }

  .home .banner-exclusive-posts-wrapper .exclusive-slides {
    height: 46px;
    padding-inline: 8px;
  }

  .home .banner-exclusive-posts-wrapper .marquee a {
    min-height: 46px;
    padding-inline: 14px;
  }
}

/* Search UI */
#af-live-search-results,
.af-live-search-results,
.widget.widget_search,
.reviewnews-widget.widget_search,
.wp-block-search,
.widget_product_search {
  display: none;
}
