/* סגנונות בסיסיים */
.gsap-animated-text {
  display: block !important;
  position: relative;
  white-space: normal;
  line-height: 1.2;
  word-break: keep-all;
  overflow-wrap: break-word;
  hyphens: none;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* מסיכה לכל אות או מילה */
.gsap-animated-text .mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  word-break: keep-all;
  white-space: normal;
}

/* עיצוב אותיות */
.gsap-animated-text .letter {
  display: inline-block;
  will-change: transform, opacity;
  word-break: keep-all;
  white-space: normal;
}

/* עיצוב מילים */
.gsap-animated-text .word {
  display: inline-block;
  will-change: transform, opacity;
  white-space: normal;
  word-break: keep-all;
}

/* קונטיינר שורות שנוצר דינמית */
.gsap-animated-text > div {
  display: block;
  width: 100%;
  line-height: inherit;
}

/* נעטוף את התוכן */
.gsap-animated-text-wrapper {
  display: block;
  width: 100%;
  word-break: keep-all;
  overflow-wrap: break-word;
  hyphens: none;
  white-space: normal;
}

/* שבירת שורות */
.gsap-animated-text br {
  display: block !important;
  content: "";
  line-height: 0;
  clear: both;
}

/* תמיכה בכיוון טקסט */
.gsap-animated-text[data-direction="rtl"] {
  direction: rtl;
}

.gsap-animated-text[data-direction="ltr"] {
  direction: ltr;
}

/* סגנונות לאנימציית גל */
.gsap-animated-text[data-animation="wave"] .letter,
.gsap-animated-text[data-animation="wave"] .word {
  transition: transform 0.2s ease;
}

/* סגנונות לאנימציית החלפת שורות במעבר עכבר */
.gsap-animated-text[data-animation="hover-rows"] {
  cursor: pointer;
  overflow: hidden;
}

.gsap-animated-text[data-animation="hover-rows"] .hover-top-layer,
.gsap-animated-text[data-animation="hover-rows"] .hover-bottom-layer {
  transition: transform 0.4s ease;
  white-space: normal;
}

/* מגנטיות */
.gsap-animated-text[data-animation="magnetic"] {
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.21, 0.67, 0.58, 1);
}

/* כשעושים האובר או לחיצה, הצבע משתנה מעט כדי לתת משוב ויזואלי */
.gsap-animated-text[data-trigger="hover"]:hover {
  opacity: 0.9;
}

.gsap-animated-text[data-trigger="click"]:active {
  opacity: 0.8;
}

/* תמיכה בכיוון טקסט מתקדמת */
.gsap-animated-text[data-direction="rtl"] .line-container {
  text-align: right;
  direction: rtl;
  unicode-bidi: embed;
}

.gsap-animated-text[data-direction="ltr"] .line-container {
  text-align: left;
  direction: ltr;
  unicode-bidi: embed;
}

.gsap-animated-text[data-direction="auto"] .line-container {
  text-align: inherit;
  unicode-bidi: embed;
}

/* תמיכה מיוחדת לעברית וערבית */
.gsap-animated-text[data-direction="rtl"] {
  direction: rtl;
  text-align: right;
  unicode-bidi: embed;
  word-spacing: 0;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
  hyphens: none;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
}

.gsap-animated-text[data-direction="rtl"] .word,
.gsap-animated-text[data-direction="rtl"] .letter {
  direction: rtl;
  unicode-bidi: embed;
}