/* ==========================================================================
   Resources: titles, accordion menu, single, category, cats shortcode
   Loaded on resource CPT / taxonomy and pages with resource shortcodes.
   ========================================================================== */

.resourse-conteiner .res-page-title{
  font-size: 42px;
  font-weight: 700;
  line-height:42px;
  text-align: left;
  color: var(--text-primary);
  margin: 0;
  position: relative;
  margin-top: 67px;
  width: 100%;
}
.resourse-conteiner .add-line-r::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 35px;  
  top:0px;
  right: 0px;  
  background-image: url(../images/res-line.png);  
  background-repeat: no-repeat;
  background-position: center;
}
.resourse-conteiner .resourse-desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
  text-align: left;
  color: var(--text-secondary);
  margin: 0;
  margin-top: 24px;
  max-width: 485px;
  display: flex;
  flex-direction: column;
}

.resourse-conteiner .resourse-desc p {
  margin: 0;
}

.resourse-conteiner .resourse-desc p + p {
  margin-top: 8px;
}
.resourse-conteiner .resourse-contact {
  text-decoration: none;
  margin: 20px 0px 0px;
  font-weight: 500;
}
.resourse-conteiner .almax-faq {
  margin-top: 52px;
  max-width: 590px;
}
/* ==========================================================================
   Resources accordion menu ([almax_resources_menu])
   Hover clip is local — do not add to .almax-clip-* utilities.
   ========================================================================== */

.almax-resources-menu.almax-clip-tr-bl {
  padding: 18px 22px;
}

.almax-resources-menu__cat + .almax-resources-menu__cat {
  border-top: 1px solid rgba(37, 40, 45, 0.12);
}

.almax-resources-menu__cat.is-empty {
  display: block;
}

.almax-resources-menu__cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.almax-resources-menu__title {
  min-width: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  text-decoration: none;
}

a.almax-resources-menu__title:hover,
a.almax-resources-menu__title:focus-visible {
  color: var(--color-accent, #F26722);
  text-decoration: none;
  outline: none;
}

a.almax-resources-menu__title.is-current {
  color: var(--color-accent, #F26722);
}

.almax-resources-menu__toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

.almax-resources-menu__icon {
  position: relative;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  color: var(--text-primary);
}

.almax-resources-menu__icon::before,
.almax-resources-menu__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}

.almax-resources-menu__icon::before {
  left: 0;
  top: 50%;
  width: 10px;
  height: 1.5px;
  transform: translateY(-50%);
}

.almax-resources-menu__icon::after {
  left: 50%;
  top: 0;
  width: 1.5px;
  height: 10px;
  transform: translateX(-50%);
}

.almax-resources-menu__cat.is-open .almax-resources-menu__icon {
  color: var(--color-accent, #F26722);
}

.almax-resources-menu__cat.is-open .almax-resources-menu__icon::after {
  opacity: 0;
}

.almax-resources-menu__items {
  list-style: none;
  margin: 0;
  padding: 0 0 10px;
}

.almax-resources-menu__cat:not(.is-open) .almax-resources-menu__items {
  display: none;
}

.almax-resources-menu__item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
}

.almax-resources-menu__item a::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--color-accent, #F26722);
}

.almax-resources-menu__item a:hover,
.almax-resources-menu__item a:focus-visible {
  color: var(--text-secondary);
  text-decoration: none;
  outline: none;
  background: #f6e0cf;
  border-radius: 8px;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%
  );
}

.almax-resources-menu__item.is-current a,
.almax-resources-menu__item.is-current a:hover,
.almax-resources-menu__item.is-current a:focus-visible {
  color: var(--color-accent, #F26722);
  font-weight: 700;
  text-decoration: none;
  outline: none;
}

/* ==========================================================================
   Single Resource layout
   ========================================================================== */

.almax-resource-single,
.almax-resource-single__layout,
.almax-resource-single__content,
.almax-resource-single__body {
  overflow: visible;
}

.almax-resource-single__layout {
  display: flex;
  align-items: flex-start;
  gap: 2em;
}

.almax-resource-single__nav {
  flex: 0 0 283px;
  width: 283px;
  max-width: 100%;
}

.almax-resource-single__content {
  flex: 0 1 899px;
  width: 899px;
  max-width: 100%;
  min-width: 0;
}

.almax-resource-single__hero {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 580px;
  height: 265px;
  margin-top: 24px;
  margin-bottom: 24px;
  overflow: hidden;
  background-image: url(../images/res-item-bg.png);
  background-repeat: no-repeat;
  background-position: left center;
 
}

.almax-resource-single__hero-img {
  display: block;
  width: auto;
  max-width: 570px;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  object-position: center;
}

.almax-resource-single__body {
  display: flex;
  align-items: flex-start;
  gap: 35px;
}

.almax-resource-single__main {
  flex: 0 0 590px;
  width: 590px;
  max-width: 100%;
  min-width: 0;
}

.almax-resource-single__aside {
  flex: 1 1 auto;
  min-width: 0;
  position: sticky;
  top: 24px;
  align-self: flex-start;
  z-index: 2;
}

.almax-resource-single__main h2 {
  scroll-margin-top: 24px;
}

.almax-resource-toc[hidden] {
  display: none;
}

.almax-resource-toc__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid #BDB9B6;
  margin-bottom: 100px;
}
.almax-resource-toc__list::before{
  content: "";
  position: absolute;
  bottom: -81px;
  left: 0;
  width: 125px;
  height: 182px;
  background: url(../images/line-r-res.png) no-repeat center center;
}
.almax-resource-toc__link {
  position: relative;
  
  padding: 8px 14px 8px 16px;
  color: #6b6560;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  min-height: 42px;
  display: flex;   
  align-items: center;
  margin-left: -6px;
}

.almax-resource-toc__link:hover,
.almax-resource-toc__link:focus-visible {
  color: var(--color-accent, #F26722);
  text-decoration: none;
  outline: none;
}

.almax-resource-toc__link.is-current {
  color: var(--color-accent, #F26722);
  background:#F2672236;
  border-radius: 5px 5px 0 5px;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%
  );
}

.almax-resource-toc__link.is-current::before {
  content: "";
  position: absolute;
  top: 8%;
  height: 84%;
  left: 3px;
  width: 5px;
  border-radius:5px;
  background: var(--color-accent, #F26722);
}

.almax-resource-category .almax-resource-single__content {
  flex-basis: 900px;
  width: 900px;
  max-width: 100%;
}

@media (max-width: 1100px) {
  .almax-resource-single__layout {
    flex-direction: column;
  }

  .almax-resource-single__nav,
  .almax-resource-single__content {
    flex: 1 1 auto;
    width: 100%;
  }

  .almax-resource-single__body {
    flex-direction: column;
  }

  .almax-resource-single__main {
    flex: 1 1 auto;
    width: 100%;
  }

  .almax-resource-single__aside {
    order: -1;
  }
}

.almax-resource-category__list {
  display: flex;
  flex-wrap: wrap;
  gap: 23px 30px;
  list-style: none;
  margin: 70px 0 0;
  padding: 0;
}

.almax-resource-category__card.almax-clip-tr {
  --almax-clip-bg: #ffffff;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 280px;
  height: 206px;
  padding: 14px 16px 12px;
  border-radius: 3px 0 3px 3px;
  color: inherit;
  text-decoration: none;
}

.almax-resource-category__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  max-width: 250px;
  height: 135px;
  overflow: hidden;
  background: var(--bg-panel);
  border-radius: 3px 0 3px 3px;
  clip-path: polygon(
    0 0,
    calc(100% - 20px) 0,
    100% 20px,
    100% 100%,
    0 100%
  );
}

.almax-resource-category__thumb-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.almax-resource-category__name {
  display: block;
  margin-top: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 2px;
}

.almax-resource-category__excerpt {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.almax-resource-category__card:hover,
.almax-resource-category__card:focus-visible {
  text-decoration: none;
  outline: none;
}

.almax-resource-category__card:hover .almax-resource-category__name,
.almax-resource-category__card:focus-visible .almax-resource-category__name {
  color: var(--color-accent, #F26722);
}

/* ==========================================================================
   Resources category cards ([almax_resources_cats])
   ========================================================================== */

.almax-resources-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 70px;
}

.almax-resources-cats__item {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
  width: 208px;
  height: 143px;
  padding: 0 12px 20px;
  background-color: #d9d9d9;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border-radius: 5px 0 5px 5px;
  text-decoration: none;
  letter-spacing: 3px;
  clip-path: polygon(
    0 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% 100%,
    0 100%
  );
}

.almax-resources-cats__item:hover,
.almax-resources-cats__item:focus-visible {
  color: var(--color-accent, #F26722);
  text-decoration: none;
  outline: none;
}

html[data-prc-theme="dark"] .resourse-conteiner .res-page-title {
  color: #f8fafc;
}

html[data-prc-theme="dark"] .resourse-conteiner .resourse-desc {
  color: rgba(248, 250, 252, 0.72);
}

html[data-prc-theme="dark"] .almax-resource-category__card.almax-clip-tr {
  --almax-clip-bg: #2a2d33;
}

html[data-prc-theme="dark"] .almax-resource-category__thumb {
  background: #1e2126;
}

html[data-prc-theme="dark"] .almax-resource-category__name {
  color: #f8fafc;
}

html[data-prc-theme="dark"] .almax-resource-category__excerpt {
  color: rgba(248, 250, 252, 0.72);
}

html[data-prc-theme="dark"] .almax-resource-toc__link {
  color: #9a9088;
}

html[data-prc-theme="dark"] .almax-resources-menu__title,
html[data-prc-theme="dark"] .almax-resources-menu__cat.is-empty .almax-resources-menu__title {
  color: #f8fafc;
}

html[data-prc-theme="dark"] a.almax-resources-menu__title:hover,
html[data-prc-theme="dark"] a.almax-resources-menu__title:focus-visible,
html[data-prc-theme="dark"] a.almax-resources-menu__title.is-current {
  color: var(--color-accent, #F26722);
}

html[data-prc-theme="dark"] .almax-resources-menu__icon {
  color: #f8fafc;
}

html[data-prc-theme="dark"] .almax-resources-menu__cat.is-open .almax-resources-menu__icon {
  color: var(--color-accent, #F26722);
}

html[data-prc-theme="dark"] .almax-resources-menu__cat + .almax-resources-menu__cat {
  border-top-color: rgba(248, 250, 252, 0.12);
}

html[data-prc-theme="dark"] .almax-resources-menu__item a,
html[data-prc-theme="dark"] .almax-resources-menu__item a:hover,
html[data-prc-theme="dark"] .almax-resources-menu__item a:focus-visible {
  color: rgba(248, 250, 252, 0.82);
}

html[data-prc-theme="dark"] .almax-resources-menu__item a:hover,
html[data-prc-theme="dark"] .almax-resources-menu__item a:focus-visible {
  background: rgba(246, 224, 207, 0.22);
}

html[data-prc-theme="dark"] .almax-resources-menu__item.is-current a,
html[data-prc-theme="dark"] .almax-resources-menu__item.is-current a:hover,
html[data-prc-theme="dark"] .almax-resources-menu__item.is-current a:focus-visible {
  color: var(--color-accent, #F26722);
  font-weight: 700;
}
