/* NexGuru brochure download: inline button (.ng-dl) + fixed side tab (.ng-brochure-tab) */

/* ---------- shared icon animation ---------- */
@keyframes ngDlDrop {
  0%, 55%, 100% { transform: translateY(0); opacity: 1; }
  70%           { transform: translateY(5px); opacity: 0; }
  71%           { transform: translateY(-7px); opacity: 0; }
  85%           { transform: translateY(0); opacity: 1; }
}
@keyframes ngDlShine {
  0%, 70% { transform: translateX(-120%) skewX(-20deg); }
  100%    { transform: translateX(260%) skewX(-20deg); }
}
@keyframes ngDlRing {
  0%   { box-shadow: 0 0 0 0 rgba(243, 112, 33, .55); }
  70%  { box-shadow: 0 0 0 12px rgba(243, 112, 33, 0); }
  100% { box-shadow: 0 0 0 0 rgba(243, 112, 33, 0); }
}
.ng-dl .ng-arr,
.ng-brochure-tab .ng-arr { animation: ngDlDrop 2.6s ease-in-out infinite; }

/* ---------- inline button ---------- */
.ng-dl {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 22px 7px 7px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.15;
  transition: transform .25s, box-shadow .25s, border-color .25s, background .25s;
}
.ng-dl::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  animation: ngDlShine 4.5s ease-in-out infinite;
  pointer-events: none;
}
.ng-dl-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8a3d, #f37021 55%, #e2541a);
  color: #fff;
  animation: ngDlRing 2.6s ease-out infinite;
}
.ng-dl-ico svg { width: 21px; height: 21px; overflow: visible; }
.ng-dl-txt {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 1rem;
  text-align: left;
}
.ng-dl-txt small {
  margin-top: 2px;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .78;
}
.ng-dl:hover,
.ng-dl:focus-visible {
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .6);
  box-shadow: 0 16px 30px -14px rgba(243, 112, 33, .7);
}
.ng-dl:hover .ng-arr,
.ng-dl:focus-visible .ng-arr { animation-duration: 1.1s; }
.ng-dl:focus-visible { outline: 3px solid #f37021; outline-offset: 3px; }

/* light backgrounds */
.ng-dl--light {
  border-color: #dfe4f2;
  background: #fff;
  color: #0b1a52;
  backdrop-filter: none;
  box-shadow: 0 12px 26px -18px rgba(11, 26, 82, .55);
}
.ng-dl--light::after { background: linear-gradient(90deg, transparent, rgba(243, 112, 33, .14), transparent); }
.ng-dl--light .ng-dl-txt small { color: #5a6383; opacity: 1; }
.ng-dl--light:hover,
.ng-dl--light:focus-visible {
  color: #0b1a52;
  border-color: #f6b48a;
  box-shadow: 0 18px 32px -16px rgba(243, 112, 33, .55);
}

/* placement helpers */
.ng-dl-row { display: flex; justify-content: center; margin-top: 26px; }
.ng-dl-block { margin-top: 14px; }

/* ---------- fixed side tab ---------- */
.ng-brochure-tab {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 65;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-right: 0;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, #1e3fae 0%, #0b1a52 100%);
  color: #fff;
  box-shadow: -6px 10px 26px -6px rgba(11, 26, 82, .45);
  font: 700 13px/1 'Baloo 2', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translate(0, -50%);
  transition: transform .3s cubic-bezier(.2, .8, .3, 1.2), box-shadow .3s, padding .3s;
}
.ng-brochure-tab::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .28), transparent);
  animation: ngTabShine 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ngTabShine {
  0%, 65% { transform: translateY(-120%); }
  100%    { transform: translateY(320%); }
}
.ng-bt-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8a3d, #f37021 55%, #e2541a);
  animation: ngDlRing 2.6s ease-out infinite;
}
.ng-bt-ico svg { width: 20px; height: 20px; overflow: visible; }
.ng-bt-txt { writing-mode: vertical-rl; transform: rotate(180deg); }
.ng-brochure-tab:hover,
.ng-brochure-tab:focus-visible {
  color: #fff;
  text-decoration: none;
  padding-right: 14px;
  transform: translate(-2px, -50%);
  box-shadow: -10px 14px 30px -6px rgba(243, 112, 33, .5);
}
.ng-brochure-tab:hover .ng-arr,
.ng-brochure-tab:focus-visible .ng-arr { animation-duration: 1.1s; }
.ng-brochure-tab:focus-visible { outline: 3px solid #f37021; outline-offset: 3px; }

@media (max-width: 600px) {
  .ng-dl { padding-right: 18px; }
  .ng-dl-txt { font-size: .95rem; }
  .ng-brochure-tab { padding: 8px 6px 12px; font-size: 11px; gap: 8px; }
  .ng-bt-ico { width: 32px; height: 32px; }
  .ng-bt-ico svg { width: 17px; height: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .ng-dl, .ng-brochure-tab { transition: none; }
  .ng-dl::after, .ng-brochure-tab::before,
  .ng-dl .ng-arr, .ng-brochure-tab .ng-arr,
  .ng-dl-ico, .ng-bt-ico { animation: none; }
}
@media print {
  .ng-brochure-tab, .ng-dl { display: none; }
}
