/* Shared PowerEn editorial sidebar. Product/course sidebars are excluded in PHP. */

body.poweren-global-sidebar .pw-site-sidebar {
  --pw-side-ink: #072b3a;
  --pw-side-muted: #5b747f;
  --pw-side-line: #d8e7ec;
  direction: rtl;
  text-align: right;
}

body.poweren-global-sidebar .pw-site-sidebar *,
body.poweren-global-sidebar .pw-site-sidebar *::before,
body.poweren-global-sidebar .pw-site-sidebar *::after {
  box-sizing: border-box;
}

body.poweren-global-sidebar .pw-site-sidebar__sticky {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 15px;
}

body.admin-bar.poweren-global-sidebar .pw-site-sidebar__sticky {
  top: 136px;
}

body.poweren-global-sidebar .pw-site-sidebar__overview,
body.poweren-global-sidebar .pw-site-sidebar__panel,
body.poweren-global-sidebar .pw-site-sidebar__widgets > .iranwp-sidebar {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--pw-side-line);
  border-radius: 21px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 14px 36px rgba(8, 53, 67, .07);
}

body.poweren-global-sidebar .pw-site-sidebar__overview {
  display: flex;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(145deg, #eaf9fb, #fff);
}

body.poweren-global-sidebar .pw-site-sidebar__icon {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #cff4f6;
  color: #0485a1;
}

body.poweren-global-sidebar .pw-site-sidebar svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body.poweren-global-sidebar .pw-site-sidebar__overview small,
body.poweren-global-sidebar .pw-site-sidebar__cta > span,
body.poweren-global-sidebar .pw-site-sidebar__panel header > span {
  color: #087e99;
  font-size: 10px;
  font-weight: 800;
}

body.poweren-global-sidebar .pw-site-sidebar__overview h2 {
  margin: 4px 0 7px;
  color: var(--pw-side-ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.7;
}

body.poweren-global-sidebar .pw-site-sidebar__overview p {
  margin: 0;
  color: var(--pw-side-muted);
  font-size: 10px;
  line-height: 1.9;
}

body.poweren-global-sidebar .pw-site-sidebar__overview p b {
  color: #047e99;
  font-size: 15px;
}

body.poweren-global-sidebar .pw-site-sidebar__widgets {
  display: grid;
  gap: 15px;
}

body.poweren-global-sidebar .pw-site-sidebar__widgets > .iranwp-sidebar {
  margin: 0;
  padding: 14px;
  float: none;
}

body.poweren-global-sidebar .pw-site-sidebar__widgets img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: 14px;
}

body.poweren-global-sidebar .pw-site-sidebar__widgets .sidebar-title {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.poweren-global-sidebar .pw-site-sidebar__widgets .side-title {
  display: block;
  width: auto;
  padding: 0;
  color: var(--pw-side-ink);
  font-size: 13px;
  font-weight: 900;
}

body.poweren-global-sidebar .pw-site-sidebar__panel {
  padding: 18px;
}

body.poweren-global-sidebar .pw-site-sidebar__panel header {
  margin-bottom: 13px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3edf0;
}

body.poweren-global-sidebar .pw-site-sidebar__panel header h2 {
  margin: 5px 0 0;
  color: var(--pw-side-ink);
  font-size: 15px;
  font-weight: 900;
}

body.poweren-global-sidebar .pw-site-sidebar__latest article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
}

body.poweren-global-sidebar .pw-site-sidebar__latest article + article {
  border-top: 1px solid #edf3f5;
}

body.poweren-global-sidebar .pw-site-sidebar__latest-media {
  display: block;
  width: 58px;
  height: 54px;
  overflow: hidden;
  border-radius: 12px;
  background: #e5f1f3;
}

body.poweren-global-sidebar .pw-site-sidebar__latest-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.poweren-global-sidebar .pw-site-sidebar__latest h3 {
  display: -webkit-box;
  margin: 0 0 4px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.poweren-global-sidebar .pw-site-sidebar__latest h3 a {
  color: var(--pw-side-ink);
  text-decoration: none;
}

body.poweren-global-sidebar .pw-site-sidebar__latest time {
  color: #7b929a;
  font-size: 9px;
}

body.poweren-global-sidebar .pw-site-sidebar__topics a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 42px;
  color: #284957;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

body.poweren-global-sidebar .pw-site-sidebar__topics a + a {
  border-top: 1px dashed #deeaed;
}

body.poweren-global-sidebar .pw-site-sidebar__topics b {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 25px;
  padding-inline: 5px;
  border-radius: 8px;
  background: #e8f7f8;
  color: #087e99;
  font-size: 9px;
}

body.poweren-global-sidebar .pw-site-sidebar__cta {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(69, 205, 225, .22);
  border-radius: 21px;
  background: linear-gradient(145deg, #073b4b, #052b39);
  box-shadow: 0 18px 40px rgba(5, 43, 57, .19);
  color: #fff;
}

body.poweren-global-sidebar .pw-site-sidebar__cta::after {
  position: absolute;
  bottom: -82px;
  left: -67px;
  width: 160px;
  height: 160px;
  border: 24px solid rgba(68, 217, 230, .08);
  border-radius: 50%;
  content: "";
}

body.poweren-global-sidebar .pw-site-sidebar__cta h2 {
  position: relative;
  z-index: 1;
  margin: 8px 0 9px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.7;
}

body.poweren-global-sidebar .pw-site-sidebar__cta p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #bcd9df;
  font-size: 10px;
  line-height: 1.9;
}

body.poweren-global-sidebar .pw-site-sidebar__cta a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-top: 16px;
  padding: 9px 14px;
  border-radius: 13px;
  background: #18c1df;
  color: #062d3b;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

body.poweren-global-sidebar .pw-site-sidebar a {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

body.poweren-global-sidebar .pw-site-sidebar a:focus-visible {
  outline: 3px solid #13bada;
  outline-offset: 3px;
}

@media (max-width: 991px) {
  body.poweren-global-sidebar .show-iranwp-sidebar.pw-site-sidebar {
    display: block !important;
    width: 100%;
    clear: both;
    padding: 18px 10px 0;
    float: none;
  }

  body.poweren-global-sidebar .pw-site-sidebar__sticky {
    position: static;
  }
}

@media (max-width: 767px) {
  body.poweren-global-sidebar .pw-site-sidebar__sticky {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.poweren-global-sidebar .pw-site-sidebar a {
    transition: none;
  }
}
