/* NS Toys — Diagonal Hero */

.nst-hero {
  position: relative;
  display: flex;
  flex-direction: row;
  direction: ltr; /* FORCE LTR for flex layout — RTL breaks clip-path math */
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.nst-hero.nst-vertical {
  flex-direction: column;
}

.nst-side {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  flex-shrink: 0;
  box-sizing: border-box;
}

a.nst-side {
  cursor: pointer;
}

.nst-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-repeat: no-repeat;
}

.nst-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}

.nst-content {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 5;
  pointer-events: none;
}

.nst-content[dir="rtl"] {
  direction: rtl;
  unicode-bidi: embed;
  text-align: right;
}

.nst-content[dir="ltr"] {
  direction: ltr;
  unicode-bidi: embed;
  text-align: left;
}

.nst-content > * {
  pointer-events: auto;
}

.nst-title {
  margin: 0;
  padding: 0;
  line-height: 0.95;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.nst-subtitle {
  margin: 8px 0 0;
  padding: 0;
  transition: opacity 0.4s ease;
}

.nst-cta {
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s, background-color 0.3s ease;
}

/* States */
.nst-side.is-active .nst-title { opacity: 1; }
.nst-side.is-active .nst-subtitle { opacity: 1; }
.nst-side.is-active .nst-cta { opacity: 1; transform: translateY(0); }
.nst-side.is-inactive .nst-title { opacity: 0.5; }
.nst-side.is-inactive .nst-subtitle { opacity: 0.4; }
.nst-side.is-inactive .nst-cta { opacity: 0; transform: translateY(15px); }

/* Editor */
.elementor-editor-active .nst-hero { min-height: 150px; }
