/* TechnoHell: scroll-to-top button */
.tech-scrolltop {
        position: fixed;
        right: 22px;
        bottom: 22px;
        width: 54px;
        height: 54px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 999px;
        background: linear-gradient(135deg, #60a5fa 0%, #2563eb 60%, #1d4ed8 100%);
        color: #fff;
        box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
        cursor: pointer;
        z-index: 1200;
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px);
        transition: opacity .22s ease, visibility .22s ease, transform .22s ease, box-shadow .22s ease;
      }

      .tech-scrolltop:hover,
      .tech-scrolltop:focus {
        color: #fff;
        outline: none;
        transform: translateY(-2px);
        box-shadow: 0 18px 36px rgba(37, 99, 235, 0.30);
      }

      .tech-scrolltop.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
      }

      .tech-scrolltop i {
        font-size: 18px;
        line-height: 1;
      }

      @media (max-width: 767.98px) {
        .tech-scrolltop {
          right: 14px;
          bottom: 14px;
          width: 48px;
          height: 48px;
        }

        .tech-scrolltop i {
          font-size: 16px;
        }
      }

/* Related articles cards (moved from relatednews.tpl) */
.related-item-fix {
  width: 50%;
  padding: 8px;
  box-sizing: border-box;
  float: left;
}

.related-item-fix:nth-child(2n+1) {
  clear: both;
}

.related-card-fix {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 102px;
  height: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  border: 1px solid #dbe3ee;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(20,26,38,.05);
}

.related-thumb-fix {
  position: relative;
  z-index: 5;
  pointer-events: auto;
  display: block;
  flex: 0 0 110px;
  width: 110px;
  text-decoration: none;
}

.related-thumb-fix img {
  display: block;
  width: 110px;
  height: 74px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border: 1px solid rgba(16,24,40,.05);
}

.related-content-fix {
  position: relative;
  z-index: 5;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 74px;
}

.related-cat-fix {
  position: relative;
  z-index: 20;
  pointer-events: auto;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 6px;
}

.related-cat-fix a,
.related-cat-fix a:link,
.related-cat-fix a:visited,
.related-cat-fix a:hover,
.related-cat-fix a:focus,
.related-cat-fix a:active {
  position: relative;
  z-index: 20;
  pointer-events: auto;
  display: inline-block;
  color: #db6d00 !important;
  text-decoration: none !important;
}

.related-cat-fix a:hover,
.related-cat-fix a:focus {
  color: #ff8a1c !important;
}

.related-title-fix {
  margin-bottom: 8px;
}

.related-title-fix a {
  position: relative;
  z-index: 20;
  pointer-events: auto;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
  color: #18202b;
  text-decoration: none;
  display: block;
}

.related-title-fix a:hover {
  color: #db6d00;
  text-decoration: none;
}

.related-bottom-fix {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.related-date-fix {
  font-size: 12px;
  color: #7a8798;
}

.related-btn-fix,
.related-btn-fix:link,
.related-btn-fix:visited,
.related-btn-fix:hover,
.related-btn-fix:focus,
.related-btn-fix:active {
  position: relative;
  z-index: 20;
  pointer-events: auto;
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(135deg, #ff7a8e 0%, #ff4d67 58%, #dc2743 100%);
  color: #fff !important;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(255,77,103,.20);
}

.related-btn-fix:hover,
.related-btn-fix:focus {
  background: linear-gradient(135deg, #ff90a1 0%, #ff5e77 58%, #dc2743 100%);
  color: #fff !important;
  text-decoration: none !important;
}

@media (max-width: 767px) {
  .related-item-fix {
    width: 100%;
    padding: 6px;
  }

  .related-item-fix:nth-child(2n+1) {
    clear: none;
  }

  .related-card-fix {
    gap: 10px;
    padding: 10px;
    min-height: 94px;
  }

  .related-thumb-fix {
    flex: 0 0 96px;
    width: 96px;
  }

  .related-thumb-fix img {
    width: 96px;
    height: 68px;
    border-radius: 12px;
  }

  .related-title-fix a {
    font-size: 14px;
    line-height: 1.25;
  }

  .related-date-fix {
    font-size: 11px;
  }

  .related-btn-fix {
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .related-card-fix {
    gap: 8px;
    padding: 9px;
  }

  .related-thumb-fix {
    flex: 0 0 88px;
    width: 88px;
  }

  .related-thumb-fix img {
    width: 88px;
    height: 62px;
  }

  .related-cat-fix {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .related-title-fix a {
    font-size: 13px;
  }

  .related-btn-fix {
    padding: 4px 9px;
    font-size: 10px;
  }
}

/* Author expertise block */
.fs-author {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 1.4rem;
  padding: 1rem 1.15rem;
  border: 1px solid #dbe3ee;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  box-shadow: 0 8px 20px rgba(20,26,38,.05);
}

.fs-author__avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 60%, #1d4ed8 100%);
  color: #fff;
  font-size: 1.05rem;
}

.fs-author__label {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7a8798;
  font-weight: 700;
}

.fs-author__name {
  font-weight: 800;
  color: #18202b;
}

.fs-author__name a {
  color: inherit;
  text-decoration: none;
}

.fs-author__name a:hover {
  color: #db6d00;
}

.fs-author__text {
  margin: .2rem 0 0;
  font-size: .92rem;
  line-height: 1.55;
  color: #5b6776;
}

.fs-author__date {
  margin-top: .35rem;
  font-size: .82rem;
  color: #7a8798;
}

@media (max-width: 575.98px) {
  .fs-author {
    gap: 11px;
    padding: .85rem .95rem;
  }
  .fs-author__avatar {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    font-size: .95rem;
  }
}
