/*
Theme Name: InfoSocial
Description: RTL styles for InfoSocial WordPress Theme
*/

/* Ensure base HTML & body are strictly right-to-left */
html[dir="rtl"],
body.rtl {
  direction: rtl;
  unicode-bidi: embed;
  text-align: right;
}

/* Logical input alignments */
input[type="text"],
input[type="search"],
input[type="email"],
textarea {
  text-align: right;
  direction: rtl;
}

/* Progress bar anchors to the right in RTL */
#reading-progress {
  transform-origin: 100% 50%;
}

/* Primary Menu RTL Dropdown Positioning */
.primary-menu .sub-menu {
  right: 0;
  left: auto;
}
.primary-menu .sub-menu .sub-menu {
  right: 100%;
  left: auto;
}

/* Ticker layout: In RTL, badge is on the RIGHT (start of line) and typewriter flows towards the left */
.ticker .wrap {
  flex-direction: row;
}

/* Splide RTL Arrows: Next advances to the LEFT, Previous returns to the RIGHT */
.splide--rtl .splide__arrow--prev,
.splide__arrows--rtl .splide__arrow--prev {
  right: 1em !important;
  left: auto !important;
}
.splide--rtl .splide__arrow--prev svg,
.splide__arrows--rtl .splide__arrow--prev svg {
  transform: scaleX(1) !important;
}

.splide--rtl .splide__arrow--next,
.splide__arrows--rtl .splide__arrow--next {
  left: 1em !important;
  right: auto !important;
}
.splide--rtl .splide__arrow--next svg,
.splide__arrows--rtl .splide__arrow--next svg {
  transform: scaleX(-1) !important;
}

@media (max-width: 768px) {
  .splide__arrows,
  .splide__arrow {
    display: none !important;
  }
}
