/*

Theme Name: Pro &ndash; Child Theme
Theme URI: http://theme.co/pro/
Author: Themeco
Author URI: http://theme.co/
Description: Make all of your modifications to Pro in this child theme.
Version: 1.0.17
Template: pro

*/

/* ===== RISSC HEADER v2 ===== */
:root {
  --rissc-navy: #002d62;
  --rissc-gold: #c4a46a;
  --rissc-pad: clamp(16px, 3vw, 40px);
  --rissc-utils: 340px;
}

/* LOGO alone — large, sharp, centered */
.x-masthead > .x-bar-top.x-hide-md.x-hide-sm.x-hide-xs:not(.x-bar-is-sticky) {
  height: auto !important;
}
.x-masthead > .x-bar-top.x-hide-md.x-hide-sm.x-hide-xs:not(.x-bar-is-sticky) .x-bar-content {
  justify-content: center !important;
  align-items: center !important;
  padding: 22px var(--rissc-pad) 16px !important;
}
.x-masthead > .x-bar-top.x-hide-md.x-hide-sm.x-hide-xs:not(.x-bar-is-sticky) .x-bar-container {
  flex: 0 1 auto !important;
  margin: 0 auto !important;
  justify-content: center !important;
}
.x-masthead > .x-bar-top.x-hide-md.x-hide-sm.x-hide-xs:not(.x-bar-is-sticky) .x-image,
.x-masthead > .x-bar-top.x-hide-md.x-hide-sm.x-hide-xs:not(.x-bar-is-sticky) a.x-image {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto !important;
}
.x-masthead > .x-bar-top.x-hide-md.x-hide-sm.x-hide-xs:not(.x-bar-is-sticky) .x-image img {
  display: block !important;
  width: auto !important;
  max-width: min(760px, 92vw) !important;
  height: auto !important;
  max-height: 96px !important;
  margin: 0 auto !important;
  image-rendering: -webkit-optimize-contrast;
}

/* MENU row — centered menu; utilities in the right column */
.x-masthead > .x-bar-top.x-bar-is-sticky.x-hide-md.x-hide-sm.x-hide-xs {
  height: auto !important;
}
.x-masthead > .x-bar-top.x-bar-is-sticky.x-hide-md.x-hide-sm.x-hide-xs .x-bar-content {
  display: grid !important;
  /* Left flexes; center is the menu width; right reserves utils without overlapping */
  grid-template-columns: minmax(0, 1fr) auto minmax(var(--rissc-utils), 1fr) !important;
  align-items: center !important;
  min-height: 70px !important;
  padding: 0 var(--rissc-pad) !important;
  column-gap: 12px !important;
}
.x-masthead > .x-bar-top.x-bar-is-sticky.x-hide-md.x-hide-sm.x-hide-xs .x-bar-content > .x-bar-container:first-child {
  grid-column: 2 !important;
  justify-self: center !important;
  justify-content: center !important;
  margin: 0 !important;
  width: max-content !important;
  max-width: 100% !important;
  position: static !important;
  transform: none !important;
}
.x-masthead > .x-bar-top.x-bar-is-sticky.x-hide-md.x-hide-sm.x-hide-xs .x-bar-content > .x-bar-container:last-child {
  grid-column: 3 !important;
  justify-self: end !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  margin: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  position: static !important;
  transform: none !important;
}
.x-masthead .x-search {
  flex: 0 0 150px !important;
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  align-self: center !important;
}
/* RTL: utils on inline-start (visual left), keep horizontal */
.rtl .x-masthead > .x-bar-top.x-bar-is-sticky.x-hide-md.x-hide-sm.x-hide-xs .x-bar-content {
  grid-template-columns: minmax(var(--rissc-utils), 1fr) auto minmax(0, 1fr) !important;
}
.rtl .x-masthead > .x-bar-top.x-bar-is-sticky.x-hide-md.x-hide-sm.x-hide-xs .x-bar-content > .x-bar-container:first-child {
  grid-column: 2 !important;
  justify-self: center !important;
}
.rtl .x-masthead > .x-bar-top.x-bar-is-sticky.x-hide-md.x-hide-sm.x-hide-xs .x-bar-content > .x-bar-container:last-child {
  grid-column: 1 !important;
  justify-self: start !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
}

.x-masthead .ubermenu.ubermenu-main { font-size: 18px !important; }
.x-masthead .ubermenu-main > .ubermenu-nav {
  display: flex !important;
  justify-content: center !important;
  margin: 0 auto !important;
}
.x-masthead .ubermenu.ubermenu-main > .ubermenu-nav > .ubermenu-item.ubermenu-item-level-0 > a.ubermenu-target {
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  padding: 1.1em 1.15em !important;
  background: transparent !important;
  border-style: solid !important;
  border-width: 0 0 3px 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.x-masthead .ubermenu.ubermenu-main > .ubermenu-nav > .ubermenu-item.ubermenu-item-level-0:hover > a.ubermenu-target,
.x-masthead .ubermenu.ubermenu-main > .ubermenu-nav > .ubermenu-item.ubermenu-item-level-0.ubermenu-active > a.ubermenu-target,
.x-masthead .ubermenu.ubermenu-main > .ubermenu-nav > .ubermenu-item.ubermenu-item-level-0.ubermenu-current-menu-item > a.ubermenu-target,
.x-masthead .ubermenu.ubermenu-main > .ubermenu-nav > .ubermenu-item.ubermenu-item-level-0.ubermenu-current-menu-parent > a.ubermenu-target,
.x-masthead .ubermenu.ubermenu-main > .ubermenu-nav > .ubermenu-item.ubermenu-item-level-0.ubermenu-current-menu-ancestor > a.ubermenu-target {
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
  border-bottom-color: var(--rissc-gold) !important;
}

.x-masthead .x-search {
  flex: 0 0 150px !important;
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  height: 38px !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.7) !important;
  border-radius: 2px !important;
  background: rgba(0,60,131,.45) !important;
}
.x-masthead .x-search .x-search-input {
  color: #fff !important;
  font-size: 12px !important;
  letter-spacing: .03em !important;
  text-transform: uppercase !important;
  background: transparent !important;
}
.x-masthead .x-search .x-search-input::placeholder {
  color: rgba(255,255,255,.78) !important;
  opacity: 1 !important;
}
.x-masthead .x-search .x-search-btn,
.x-masthead .x-search .x-search-btn svg {
  color: #fff !important;
  stroke: #fff !important;
}
.x-masthead .widget_icl_lang_sel_widget { margin: 0 !important; padding: 0 !important; }
.x-masthead .wpml-ls-legacy-list-horizontal { margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; }
.x-masthead .wpml-ls-legacy-list-horizontal > ul {
  display: inline-flex !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border: 1px solid rgba(255,255,255,.7) !important;
  border-radius: 2px !important;
  overflow: hidden !important;
  background: rgba(0,60,131,.45) !important;
}
.x-masthead .wpml-ls-legacy-list-horizontal .wpml-ls-item {
  margin: 0 !important; padding: 0 !important; border: 0 !important; list-style: none !important; background: transparent !important;
}
.x-masthead .wpml-ls-legacy-list-horizontal .wpml-ls-link,
.x-masthead .wpml-ls-legacy-list-horizontal a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 38px !important;
  padding: 0 10px !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
  border-inline-end: 1px solid rgba(255,255,255,.35) !important;
}
.x-masthead .wpml-ls-legacy-list-horizontal .wpml-ls-item:last-child .wpml-ls-link { border-inline-end: 0 !important; }
.x-masthead .wpml-ls-legacy-list-horizontal .wpml-ls-current-language .wpml-ls-link,
.x-masthead .wpml-ls-legacy-list-horizontal .wpml-ls-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.14) !important;
}
.x-masthead .wpml-ls-legacy-list-horizontal .wpml-ls-flag { width: 16px !important; height: auto !important; margin: 0 !important; }
.x-masthead .ubermenu-main .ubermenu-submenu { font-size: 16px !important; }
.x-masthead .ubermenu-main .ubermenu-submenu .ubermenu-target { border-bottom: 0 !important; }
/* ===== /RISSC HEADER v2 ===== */

/* ===== RISSC FOOTER v4 ===== */
.wpml-ls-statics-footer,
footer .wpml-ls-statics-footer {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}
.x-bar-footer.e3201-e1 .x-bar-content,
.x-bar-footer.e3273-e1 .x-bar-content {
  display: grid !important;
  grid-template-columns: 1.2fr 1.2fr 0.75fr !important;
  gap: 36px 40px !important;
  align-items: start !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  width: 100% !important;
}
@media (max-width: 979px) {
  .x-bar-footer.e3201-e1 .x-bar-content,
  .x-bar-footer.e3273-e1 .x-bar-content {
    grid-template-columns: 1fr !important;
  }
}
.x-bar-footer .x-bar-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: 100% !important;
}
.x-bar-footer.e3201-e1 .x-bar-container:last-child,
.x-bar-footer.e3273-e1 .x-bar-container:last-child {
  align-items: flex-end !important;
}
.rtl .x-bar-footer.e3201-e1 .x-bar-container:last-child,
.rtl .x-bar-footer.e3273-e1 .x-bar-container:last-child {
  align-items: flex-start !important;
}
.x-bar-footer ul.x-menu,
.x-bar-footer .x-menu,
.x-bar-footer .x-menu.x-menu-inline {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.x-bar-footer ul.x-menu > li,
.x-bar-footer .x-menu > li {
  display: block !important;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 0 .65em 0 !important;
  overflow: visible !important;
}
.x-bar-footer .x-menu .x-anchor,
.x-bar-footer .x-menu a.x-anchor {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
  line-height: 1.35 !important;
  align-items: flex-start !important;
}
.x-bar-footer .x-menu .x-anchor .x-anchor-content {
  flex-wrap: wrap !important;
  height: auto !important;
  white-space: normal !important;
  align-items: flex-start !important;
}
.x-bar-footer .x-menu .x-anchor .x-anchor-text,
.x-bar-footer .x-menu .x-anchor .x-anchor-text-primary {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.35 !important;
}
.x-bar-footer .x-text-headline {
  margin: 0 0 .85em 0 !important;
}
.x-bar-footer .x-search { max-width: 260px !important; width: 100% !important; }
.x-bar-footer .x-line { display: none !important; }
.x-bar-footer .ubermenu-responsive-toggle { display: none !important; }
/* Newsletter above footer */
.home .rissc-hide-newsletter { display: none !important; }
.home .x-section:not(.rissc-hide-newsletter) .mc4wp-form {
  margin-top: .35em;
}
.home .esg-grid-wrap-container,
.page-id-492 .esg-grid-wrap-container,
.page-id-1651 .esg-grid-wrap-container {
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.home .esg-container-fullscreen-forcer,
.page-id-492 .esg-container-fullscreen-forcer,
.page-id-1651 .esg-container-fullscreen-forcer {
  left: 0 !important;
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* ===== /RISSC FOOTER v4 ===== */

/* RISSC lang switcher fix */
.x-masthead .wpml-ls-legacy-list-horizontal .wpml-ls-link,
.x-masthead .wpml-ls-legacy-list-horizontal .wpml-ls-native,
.x-masthead .wpml-ls a,
.x-masthead .wpml-ls span {
  text-shadow: none !important;
}

/* RISSC Arabic parity */
.rtl .x-masthead > .x-bar-top.x-hide-md.x-hide-sm.x-hide-xs:not(.x-bar-is-sticky) .x-image img {
  max-width: min(760px, 92vw) !important;
  max-height: 96px !important;
  margin: 0 auto !important;
}
.rtl .x-masthead .x-bar-top.x-bar-is-sticky .x-bar-content,
.rtl .x-masthead > .x-bar-top:nth-child(2) .x-bar-content {
  grid-template-columns: minmax(var(--rissc-utils), 1fr) auto minmax(0, 1fr) !important;
}
.rtl .x-masthead .ubermenu.ubermenu-main > .ubermenu-nav > .ubermenu-item.ubermenu-item-level-0 > a.ubermenu-target {
  color: #fff !important;
  font-size: 18px !important;
}
.page-id-1651 .e1651-e4.x-content-area {
  display: none !important;
}
.rtl.home .esg-container,
.rtl.page-id-1651 .esg-container {
  float: none !important;
}
.rtl.home .esg-container-fullscreen-forcer,
.rtl.page-id-1651 .esg-container-fullscreen-forcer {
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
  float: none !important;
}
.rissc-hide-newsletter {
  display: none !important;
}
.rtl .x-bar-footer .x-menu .x-anchor,
.rtl .x-bar-footer .x-menu a {
  text-align: right !important;
}
.rtl .x-bar-footer.e3273-e1 .x-bar-container:last-child {
  align-items: flex-start !important;
}


/* RISSC sticky bar vertical align fix */
.x-masthead > .x-bar-top.x-bar-is-sticky.x-hide-md.x-hide-sm.x-hide-xs .x-bar-content {
  align-items: center !important;
}
.x-masthead > .x-bar-top.x-bar-is-sticky.x-hide-md.x-hide-sm.x-hide-xs .x-bar-content > .x-bar-container {
  align-items: center !important;
  align-self: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
}
.x-masthead > .x-bar-top.x-bar-is-sticky.x-hide-md.x-hide-sm.x-hide-xs .x-bar-content > .x-bar-container:last-child {
  align-items: center !important;
}


/* RISSC force single-row sticky utils */
.x-masthead > .x-bar-top.x-bar-is-sticky.x-hide-md.x-hide-sm.x-hide-xs .x-bar-content {
  grid-template-rows: auto !important;
  grid-auto-rows: auto !important;
  align-items: center !important;
}
.x-masthead > .x-bar-top.x-bar-is-sticky.x-hide-md.x-hide-sm.x-hide-xs .x-bar-content > .x-bar-container:first-child,
.x-masthead > .x-bar-top.x-bar-is-sticky.x-hide-md.x-hide-sm.x-hide-xs .x-bar-content > .x-bar-container:last-child {
  grid-row: 1 !important;
  align-self: center !important;
}
.rtl .x-masthead > .x-bar-top.x-bar-is-sticky.x-hide-md.x-hide-sm.x-hide-xs .x-bar-content > .x-bar-container:last-child {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

/* ===== RISSC BOOK GRIDS: 1 row + pagination + full cover ===== */
.home .esg-overflowtrick,
.home .esg-overflowtrick ul,
.home .mainul,
.page-id-492 .esg-overflowtrick,
.page-id-492 .esg-overflowtrick ul,
.page-id-492 .mainul,
.page-id-1651 .esg-overflowtrick,
.page-id-1651 .esg-overflowtrick ul,
.page-id-1651 .mainul {
  height: 250px !important;
  width: 100% !important;
  max-width: 100% !important;
}
.home .esg-grid li.filterall,
.page-id-492 .esg-grid li.filterall,
.page-id-1651 .esg-grid li.filterall {
  width: 162px !important;
  height: 250px !important;
}
.home .esg-grid .esg-media-cover-wrapper,
.home .esg-grid .esg-entry-media,
.home .esg-grid .esg-entry-media-wrapper,
.home .esg-grid .esg-media-poster,
.page-id-492 .esg-grid .esg-media-cover-wrapper,
.page-id-492 .esg-grid .esg-entry-media,
.page-id-492 .esg-grid .esg-entry-media-wrapper,
.page-id-492 .esg-grid .esg-media-poster,
.page-id-1651 .esg-grid .esg-media-cover-wrapper,
.page-id-1651 .esg-grid .esg-entry-media,
.page-id-1651 .esg-grid .esg-entry-media-wrapper,
.page-id-1651 .esg-grid .esg-media-poster {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  left: 0 !important;
  top: 0 !important;
  overflow: hidden !important;
}
.home .esg-grid .esg-entry-media img,
.home .esg-grid img.esg-entry-media-img,
.page-id-492 .esg-grid .esg-entry-media img,
.page-id-492 .esg-grid img.esg-entry-media-img,
.page-id-1651 .esg-grid .esg-entry-media img,
.page-id-1651 .esg-grid img.esg-entry-media-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}
.home .esg-pagination,
.page-id-492 .esg-pagination,
.page-id-1651 .esg-pagination {
  display: block !important;
  text-align: center !important;
  margin-top: 12px !important;
}
/* ===== /RISSC BOOK GRIDS ===== */

/* ===== RISSC PUBLICATIONS covers = HOME quality ===== */
.page-id-387 .esg-overflowtrick,
.page-id-387 .esg-overflowtrick ul,
.page-id-387 .mainul,
.page-id-1370 .esg-overflowtrick,
.page-id-1370 .esg-overflowtrick ul,
.page-id-1370 .mainul {
  height: 230px !important;
  width: 100% !important;
}
.page-id-387 .esg-grid li.filterall,
.page-id-1370 .esg-grid li.filterall {
  width: 148px !important;
  height: 230px !important;
}
.page-id-387 .esg-grid .esg-entry-media,
.page-id-387 .esg-grid .esg-media-poster,
.page-id-1370 .esg-grid .esg-entry-media,
.page-id-1370 .esg-grid .esg-media-poster {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  background-size: cover !important;
  background-position: center top !important;
}
.page-id-387 .esg-grid .esg-entry-media img,
.page-id-1370 .esg-grid .esg-entry-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}
/* ===== /RISSC PUBLICATIONS covers ===== */

/* Shop: show product cover images */
.woocommerce ul.products .entry-featured,
.post-type-archive-product .entry-featured,
.woocommerce-page ul.products .entry-featured {
  display: block !important;
  margin: 0 0 12px !important;
}
.woocommerce ul.products .entry-featured img,
.woocommerce ul.products li.product img {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 2 / 3 !important;
  object-fit: cover !important;
  object-position: center top !important;
}
/* Publications titles centered */
.page-id-387 .x-text, .page-id-387 .x-text p,
.page-id-1370 .x-text, .page-id-1370 .x-text p {
  text-align: center !important;
}
