/* Ares System custom brand presentation */
:root {
  --ares-brand-red: #e21b2d;
  --ares-brand-red-dark: #bd0711;
  --ares-brand-text: #202124;
  --ares-brand-muted: #63676d;
  --ares-brand-border: #e9e9eb;
  --ares-brand-soft: #f8f8f9;
  --ares-brand-white: #fff;
}

/* Brand archive */
.pwb-brand-banner-cont {
  width: 100%;
  margin: 0 auto 34px;
  direction: rtl;
}
.pwb-brand-banner-cont .pwb-brand-banner {
  position: relative;
  overflow: hidden;
  margin: 0 0 22px;
  border: 1px solid var(--ares-brand-border);
  border-radius: 22px;
  background: #f5f5f5;
  box-shadow: 0 12px 35px rgba(0,0,0,.07);
}
.pwb-brand-banner-cont .pwb-brand-banner img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: cover;
  transition: transform .5s ease;
}
@media (hover:hover) {
  .pwb-brand-banner-cont .pwb-brand-banner:hover img { transform: scale(1.012); }
}
.pwb-brand-banner-cont .pwb-brand-description {
  position: relative;
  overflow: hidden;
  padding: 30px 34px;
  border: 1px solid var(--ares-brand-border);
  border-radius: 20px;
  background: var(--ares-brand-white);
  box-shadow: 0 8px 28px rgba(0,0,0,.045);
}
.pwb-brand-banner-cont .pwb-brand-description::before {
  content: "";
  position: absolute;
  top: 0;
  left: 34px;
  width: 72px;
  height: 4px;
  border-radius: 0 0 10px 10px;
  background: var(--ares-brand-red);
}
.pwb-brand-description figure {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  margin: 0 0 24px !important;
}
.pwb-brand-description figure img {
  display: block;
  width: auto;
  max-width: 150px;
  max-height: 68px;
  margin: 0 auto;
  object-fit: contain;
}
.pwb-brand-description h2,
.pwb-brand-description h3,
.ares-brand-card__description h2,
.ares-brand-card__description h3,
.ares-brand-card__description h4 {
  position: relative;
  margin: 28px 0 12px;
  padding-right: 18px;
  color: var(--ares-brand-text);
  font-family: inherit;
  font-weight: 800;
  line-height: 1.7;
}
.pwb-brand-description h2,
.ares-brand-card__description h2 { font-size: clamp(20px,2vw,24px); }
.pwb-brand-description h3,
.ares-brand-card__description h3 { font-size: clamp(17px,1.6vw,20px); }
.ares-brand-card__description h4 { font-size: 16px; }
.pwb-brand-description h2::before,
.pwb-brand-description h3::before,
.ares-brand-card__description h2::before,
.ares-brand-card__description h3::before,
.ares-brand-card__description h4::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 5px;
  height: 22px;
  border-radius: 10px;
  background: var(--ares-brand-red);
  transform: translateY(-50%);
}
.pwb-brand-description figure + h2,
.pwb-brand-description > h2:first-child,
.pwb-brand-description > h3:first-child,
.ares-brand-card__description > h2:first-child,
.ares-brand-card__description > h3:first-child { margin-top: 0; }
.pwb-brand-description p,
.ares-brand-card__description p {
  margin: 0 0 14px;
  color: var(--ares-brand-muted);
  font-size: 15px;
  line-height: 2.15;
  text-align: justify;
}
.pwb-brand-description p:last-child,
.ares-brand-card__description p:last-child { margin-bottom: 0; }

/* Product brand tab */
.ares-product-brands {
  width: 100%;
  direction: rtl;
  text-align: right;
}
.ares-product-brands__heading {
  position: relative;
  margin: 0 0 20px;
  padding-right: 17px;
  color: var(--ares-brand-text);
  font-size: clamp(21px,2vw,26px);
  font-weight: 800;
  line-height: 1.7;
}
.ares-product-brands__heading::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 5px;
  height: 26px;
  border-radius: 10px;
  background: var(--ares-brand-red);
  transform: translateY(-50%);
}
.ares-product-brands__list {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 22px;
}
.ares-brand-card {
  position: relative;
  overflow: hidden;
  padding: 30px 34px;
  border: 1px solid var(--ares-brand-border);
  border-radius: 20px;
  background: var(--ares-brand-white);
  box-shadow: 0 8px 28px rgba(0,0,0,.045);
}
.ares-brand-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 34px;
  width: 72px;
  height: 4px;
  border-radius: 0 0 10px 10px;
  background: var(--ares-brand-red);
}
.ares-brand-card__header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ares-brand-border);
}
.ares-brand-card__logo {
  display: flex;
  flex: 0 0 105px;
  align-items: center;
  justify-content: center;
  width: 105px;
  height: 105px;
  padding: 17px;
  border: 1px solid var(--ares-brand-border);
  border-radius: 18px;
  background: var(--ares-brand-soft);
}
.ares-brand-card__logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.ares-brand-card__logo-image {
  display: block;
  width: auto;
  max-width: 72px;
  max-height: 72px;
  margin: 0;
  object-fit: contain;
}
.ares-brand-card__title-wrap {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.ares-brand-card__eyebrow {
  margin-bottom: 4px;
  color: var(--ares-brand-red);
  font-size: 12px;
  font-weight: 700;
}
.ares-brand-card__title {
  margin: 0;
  color: var(--ares-brand-text);
  font-family: inherit;
  font-size: clamp(21px,2vw,27px);
  font-weight: 850;
  line-height: 1.55;
}
.ares-brand-card__archive-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px solid var(--ares-brand-border);
  border-radius: 10px;
  background: #fff;
  color: var(--ares-brand-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: .2s ease;
}
.ares-brand-card__archive-link::after { content: "←"; font-size: 16px; }
.ares-brand-card__archive-link:hover {
  border-color: var(--ares-brand-red);
  background: #fff7f8;
  color: var(--ares-brand-red);
  transform: translateX(-2px);
}
.ares-brand-card__description + .ares-brand-card__description {
  margin-top: 24px;
}
.ares-brand-card__description--long {
  padding: 23px 25px;
  border: 1px solid var(--ares-brand-border);
  border-radius: 15px;
  background: var(--ares-brand-soft);
}
.ares-brand-card__description ul,
.ares-brand-card__description ol {
  margin: 12px 0 18px;
  padding-right: 24px;
  color: var(--ares-brand-muted);
}
.ares-brand-card__description li { margin-bottom: 8px; line-height: 2; }
.ares-brand-card__description li::marker { color: var(--ares-brand-red); }
.ares-brand-card__description a { color: var(--ares-brand-red); font-weight: 700; }
.ares-brand-card__description figure {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  margin: 0 0 24px !important;
}
.ares-brand-card__description figure img {
  display: block;
  width: auto;
  max-width: 150px;
  max-height: 68px;
  margin: 0 auto;
  object-fit: contain;
}
.ares-brand-card,
.ares-brand-card__description,
.pwb-brand-description { overflow-wrap: anywhere; }

@media (max-width: 767px) {
  .pwb-brand-banner-cont { margin-bottom: 22px; }
  .pwb-brand-banner-cont .pwb-brand-banner { margin-bottom: 16px; border-radius: 14px; box-shadow: 0 7px 22px rgba(0,0,0,.06); }
  .pwb-brand-banner-cont .pwb-brand-banner img { min-height: 190px; aspect-ratio: 16/10; object-fit: cover; }
  .pwb-brand-banner-cont .pwb-brand-description,
  .ares-brand-card { padding: 22px 17px 18px; border-radius: 14px; box-shadow: none; }
  .pwb-brand-banner-cont .pwb-brand-description::before,
  .ares-brand-card::before { right: 17px; width: 55px; height: 3px; }
  .ares-product-brands__heading { margin-bottom: 15px; padding-right: 14px; font-size: 20px; }
  .ares-product-brands__heading::before { width: 4px; height: 22px; }
  .ares-brand-card__header { flex-direction: column; gap: 14px; margin-bottom: 20px; padding-bottom: 18px; text-align: center; }
  .ares-brand-card__logo { flex-basis: auto; width: 84px; height: 84px; padding: 13px; border-radius: 15px; }
  .ares-brand-card__logo-image { max-width: 58px; max-height: 58px; }
  .ares-brand-card__title-wrap { align-items: center; width: 100%; }
  .ares-brand-card__title { font-size: 20px; text-align: center; }
  .ares-brand-card__description--long { padding: 18px 15px; border-radius: 12px; }
  .pwb-brand-description h2,
  .ares-brand-card__description h2 { font-size: 18px; }
  .pwb-brand-description h3,
  .ares-brand-card__description h3 { font-size: 16px; }
  .pwb-brand-description h2,
  .pwb-brand-description h3,
  .ares-brand-card__description h2,
  .ares-brand-card__description h3,
  .ares-brand-card__description h4 { margin-top: 21px; margin-bottom: 9px; padding-right: 14px; }
  .pwb-brand-description h2::before,
  .pwb-brand-description h3::before,
  .ares-brand-card__description h2::before,
  .ares-brand-card__description h3::before,
  .ares-brand-card__description h4::before { width: 4px; height: 18px; }
  .pwb-brand-description p,
  .ares-brand-card__description p { font-size: 14px; line-height: 2; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .pwb-brand-banner img,
  .ares-brand-card__archive-link { transition: none !important; }
}


/* Ares brand archive pagination - independent from theme pagination styles */
.tax-pwb-brand .ares-brand-pagination-wrap {
  display: flex !important;
  width: 100%;
  clear: both;
  align-items: center;
  justify-content: center;
  margin: 34px 0 18px;
  padding: 0 12px;
  direction: rtl;
}
.tax-pwb-brand .ares-brand-pagination {
  display: flex !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.tax-pwb-brand .ares-brand-pagination ul.page-numbers {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  list-style: none !important;
}
.tax-pwb-brand .ares-brand-pagination ul.page-numbers::before,
.tax-pwb-brand .ares-brand-pagination ul.page-numbers::after {
  display: none !important;
  content: none !important;
}
.tax-pwb-brand .ares-brand-pagination ul.page-numbers > li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  list-style: none !important;
}
.tax-pwb-brand .ares-brand-pagination .page-numbers a,
.tax-pwb-brand .ares-brand-pagination .page-numbers span.current,
.tax-pwb-brand .ares-brand-pagination .page-numbers span.dots {
  display: inline-flex !important;
  min-width: 42px;
  height: 42px;
  margin: 0 !important;
  padding: 0 12px !important;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #27272a !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
  visibility: visible !important;
  opacity: 1 !important;
}
.tax-pwb-brand .ares-brand-pagination .page-numbers a:hover,
.tax-pwb-brand .ares-brand-pagination .page-numbers span.current {
  border-color: var(--ares-brand-red) !important;
  background: var(--ares-brand-red) !important;
  color: #fff !important;
}
.tax-pwb-brand .ares-brand-pagination .page-numbers span.dots {
  min-width: 28px;
  padding: 0 5px !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none;
}
@media (max-width: 575px) {
  .tax-pwb-brand .ares-brand-pagination-wrap {
    margin-top: 26px;
    padding: 0 6px;
  }
  .tax-pwb-brand .ares-brand-pagination ul.page-numbers { gap: 6px; }
  .tax-pwb-brand .ares-brand-pagination .page-numbers a,
  .tax-pwb-brand .ares-brand-pagination .page-numbers span.current,
  .tax-pwb-brand .ares-brand-pagination .page-numbers span.dots {
    min-width: 38px;
    height: 38px;
    padding: 0 9px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
  }
}
