/* ==========================================================================
   Hebrew (IL) - Language-specific overrides for homepage (RTL)
   Loaded on tazman.co.il when lang=he
   ========================================================================== */
a,
h1,
h2,
h3,
h4,
h5,
h6,
input,
label,
li,
p,
span,
textarea, .registration-contact-success {
    font-family: Heebo, sans-serif;
    color: #353535;
}

#sixth .grid-block-fifth img {
    max-width: 100%;
}

#rashut-ha-mishim {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

#rashut-ha-mishim img {
    width: 36px;
    height: 36px;
}

#rashut-ha-mishim p {
    margin-bottom: 0;
    color: #ccc;
    font-size: 14px;
}

.your-data-is-safe {
    text-align: center;
    font-size: 14px;
    margin: 24px auto 0;
    max-width: 360px;
}

.hero-btn {
    line-height: 46px;
    width: max-content;
    padding: 0 32px;
    margin-top: 12px;
}

#home {
    padding-top: 180px;
}

#home .text-content {
    z-index: 9;
    top: -10px;
}

.tarif-header {
    min-height: 222px;
}

.tarif-btn {
    width: 200px;
    font-size: 20px;
}

.tarif ul {
    padding: 24px 16px;
}

.hero-text {
    font-weight: bold;
    color: #87c341;
    font-size: 35px;
}

.hero-text-subheader {
    color: #5286e3;
    font-size: 29px;
    margin-top: 36px;
    font-weight: 400;
}

/* --- Word positions (animated text, RTL uses right:) ---
   HE doesn't load styles-ltr.css in legacy; all positions must be explicitly set.
   Base values from legacy inline CSS + HE-specific word-3 overrides. */

.word:nth-of-type(1) { left: auto; right: 15px; }
.word:nth-of-type(2) { left: auto; right: 36px; }
.word:nth-of-type(3) { left: auto; right: 15px; }
.word:nth-of-type(4) { left: auto; right: 24px; }
.word-2:nth-of-type(1) { left: auto; right: 16px; }
.word-2:nth-of-type(2) { left: auto; right: 23px; }
.word-2:nth-of-type(3) { left: auto; right: 22px; }
.word-2:nth-of-type(4) { left: auto; right: 19px; }
/* word-3: HE-specific values (differ from base) */
.word-3:nth-of-type(1) { left: auto; right: 23px; }
.word-3:nth-of-type(2) { left: auto; right: 25px; }
.word-3:nth-of-type(3) { left: auto; right: 5px; }
.word-3:nth-of-type(4) { left: auto; right: 31px; }

/* --- RTL directional overrides ---
   Base styles.css is LTR (from styles-ltr.css). Hebrew needs all directional
   properties flipped. Legacy HE used inline CSS with RTL values. */

/* Mobile menu: flip to right side */
.mob-menu-hum {
    margin-left: 24px;
    margin-right: 0;
}

.mob-menu {
    right: 0;
    left: auto;
}

.mob-menu .close-btn {
    right: 30px;
    left: auto;
}

/* Menu underline animation */
.menu ul li:first-of-type {
    margin-right: 0;
    margin-left: auto;
}

/* Hero section text positioning */
#home .text-content {
    left: -60px !important;
    right: auto !important;
}

#home .grid-item:first-of-type {
    margin-left: 0;
    margin-right: auto;
}

/* Decorative images: flip positions */
.Bitmap {
    left: 32px;
    right: auto;
}

.Bitmap2 {
    right: 60px;
    left: auto;
}

.bitmap-1-purple {
    right: 70px;
    left: auto;
    top: -20px;
}

.bitmap-1 {
    left: -40px;
    right: auto;
}

.bitmap-3 {
    right: 356px;
    left: auto;
    bottom: 95px;
}

.bitmap-3-green {
    left: -220px;
    right: auto;
}

.bitmap-2 {
    right: 60px;
    left: auto;
}

.bitmap-2-purple {
    left: -100px;
    right: auto;
}

.pencils {
    right: 437px;
    left: auto;
}

/* Slide images: remove LTR scaleX(-1) for RTL */
.slide-item-1 .shutterstock_1190830495d {
    right: 60px;
    left: auto;
    transform: none;
}

.slide-item-2 .shutterstock_665568679 {
    right: 120px;
    left: auto;
    transform: none;
}

.slide-item-4 .shutterstock_1512343916b_comp {
    transform: none;
}

.slide-item-3 .iStock-904513122 {
    transform: none;
}

/* Letter animation: RTL float */
.letter {
    float: right;
}

/* Text alignment flips */
#main-form {
    text-align: right;
}

.popup form {
    text-align: right;
}

.tarif ul {
    text-align: right;
}

/* Why-tazman section: flip indentation */
#why-tazman p {
    margin-right: auto;
    margin-left: 0;
}

#why-tazman li {
    margin-right: 36px;
    margin-left: 0;
}

#why-tazman li::before {
    right: -36px;
    left: auto;
}

/* Eighth section: flip list indentation */
#eighth .grid-block-half {
    text-align: right;
}

#eighth li {
    margin-right: 36px;
    margin-left: 0;
}

#eighth li::before {
    right: -36px;
    left: auto;
}

#eighth .grid-block-half .grid-item:last-of-type {
    text-align: right;
}

/* Tarifs: flip list dots */
#tarifs li {
    margin-right: 20px;
    margin-left: 0;
}

#tarifs li:before {
    right: -20px;
    left: auto;
}

#tarifs .grid-block-fourth .grid-item ul .tarif-btn {
    margin: 24px auto 0 !important;
}

/* Oval decorative images: flip */
/*.oval-content {*/
/*    margin-right: -80px;*/
/*    margin-left: 0;*/
/*}*/

.oval-img-orange {
    bottom: -75px;
    right: -60px;
    transform: rotate(0);
}

.oval-img-blue {
    top: 0;
    left: -180px;
    right: auto;
    transform: rotate(0);
}

.oval-img-green {
    right: 95px;
    left: auto;
}

/* Illustrations: flip positions */
.illustration-03 {
    left: -180px;
    right: auto;
}

.illustration-02 {
    right: -132px;
    left: auto;
}

.illustration-01 {
    left: -180px;
    right: auto;
}

/* Shadow elements: flip positions, remove LTR scaleX */
.green-shadow {
    left: 0;
    right: auto;
    transform: none;
}

.blue-shadow {
    right: 0;
    left: auto;
    transform: none;
}

/* Quotes: flip position */
.quotes {
    left: -40px;
    right: auto;
}

/* Footer: flip logo alignment */
#footer .logo {
    text-align: left;
}

#footer .btn,
#footer .tazman_logo_grey-v-copy {
    margin-left: 0;
    margin-right: auto;
}

/* Group-34 image: remove LTR scaleX */
.Group-34 {
    transform: none;
}

/* Help block: flip decorative elements */
.help-block .oval-img-green {
    bottom: 8px !important;
    right: -46px !important;
    -webkit-transform: rotate(-26deg);
    -ms-transform: rotate(-26deg);
    transform: rotate(-26deg);
}

.close-btn {
    z-index: 9999;
    background-repeat: no-repeat;
}

.animate-text-0 {
    margin-bottom: 14px;
}

/* Animate text spacing: flip margins for RTL */
.animate-text-0 p:nth-of-type(3) {
    margin-left: 8px;
    margin-right: 0;
}

.animate-text-0 p:nth-of-type(5) {
    margin-left: 8px;
}
.help-block {
    margin: 70px auto 100px;
}
.help-block .oval-img-first {
    left: -46px !important;
    right: auto !important;
    transform: rotate(-26deg) !important;
}

#nineth .min-header {
    text-align: center;
    font-weight: 700;
}

.faq-accordion {
    margin: 36px auto 90px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 20px 20px 20px 60px;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 20px;
    position: relative;
}

.faq-question::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('../img/dest/arrow.svg');
    background-size: contain;
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.faq-question.open::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-question:hover {
    background-color: rgba(6, 135, 235, .05);
}

.faq-answer {
    display: none;
    padding: 20px;
    color: #111;
    font-size: 18px;
    line-height: 1.5;
    border-top: 1px solid #eee;
}

.tarif .dropdown-list {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lang-btn,
.solutions-toggle {
    color: #333;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.lang-btn svg,
.solutions-toggle svg {
    width: 18px;
    height: 18px;
}

.lang {
    position: relative;
}

.lang-content {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0px 8px 36px 0px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    z-index: 1;
    overflow: hidden;
}

.lang-content a {
    box-sizing: border-box;
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    width: 100%;
}

.lang-content a:before,
.lang a:before {
    display: none !important;
}

.lang-content a:hover {
    background-color: #f1f1f1;
}

.lang:hover .lang-content {
    display: block;
}

.mob-menu .solutions .solutions-content {
    position: static;
    display: none;
    box-shadow: none;
    border-radius: 0;
    margin-top: 8px;
}

.mob-menu .lang:hover .lang-content {
    display: none;
}

.menu ul li {
    margin: 0 10px;
}

#home h2.hero-text2 {
    margin-top: 20px;
    color: #eb7c07;
}

.hero-text-trigger {
    display: flex;
    gap: 6px;
    align-items: center;
}

.hero-text-trigger span {
    color: #eb7c07;
    font-weight: bold;
}

.bitmap-2-purple,
.bitmap-3-green,
.Bitmap,
.bitmap-1 {
    display: none !important;
}

.triggers {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
}

.move-upapp-trigger {
    align-items: start;
}

.move-upapp-trigger .check {
    margin-top: 6px;
}

.move-upapp-triggers {
    align-items: start;
    flex-direction: column;
}

.triggers .check {
    background: url(../img/dest/check-mark.svg) center center no-repeat;
    background-size: contain;
    width: 18px;
    height: 16px;
    margin-bottom: 2px;
    flex-shrink: 0;
}

.triggers span {
    color: #333;
    font-size: 20px;
}

.triggers .move-upapp-trigger span {
    font-size: 18px;
}

.bitmap-1-purple {
    right: 260px;
    top: 60px;
}

.green-shadow {
    z-index: -9;
}

#sixth .move-logo {
    margin-top: 16px;
}

.move-upapp-icons {
    align-self: start;
    margin-right: 18px;
    gap: 12px;
}

/* --- Approved & Recognized section --- */

#approved-and-recognized {
    margin-top: 120px;
}

#approved-and-recognized img {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 32px;
}

/* --- Promo banner --- */

.promo-banner-wrapper {
    display: none;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .15);
    z-index: 9999999;
}

.promo-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    height: 100vh;
}

.promo-banner-img-wrapper {
    position: relative;
    max-width: 600px;
    cursor: pointer;
}

.promo-banner-img-wrapper .close-btn-white,
.promo-banner-img-wrapper .close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
}

.promo-banner-img-wrapper img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 24px 60px 12px rgba(0, 0, 0, .5);
}

.close-btn-white {
    background: url(../img/dest/delete-white.svg) center center no-repeat;
    background-size: contain;
}

/* --- Responsive --- */

@media screen and (max-width: 1440px) {
    .tarif ul {
        padding: 24px 12px;
    }
}

@media screen and (max-width: 1366px) {
    .hero-text {
        font-size: 28px;
    }

    .hero-text-subheader {
        font-size: 24px;
        max-width: 500px;
    }

    .triggers .check {
        width: 16px;
        height: 14px;
    }

    .triggers span {
        font-size: 16px;
    }

    .bitmap-1-purple {
        right: 140px;
        left: auto;
        top: 0;
    }

    .bitmap-2 {
        right: 20px;
        left: auto;
    }

    /* Override LTR 1366px media query */
    .shutterstock_1190830495d {
        right: 85px !important;
        left: auto !important;
    }

    .shutterstock_665568679 {
        right: 45px !important;
        left: auto !important;
    }

    .Bitmap2 {
        right: 0;
        left: auto;
    }

    .pencils {
        right: 369px;
        left: auto;
    }

    #home .text-content {
        left: -135px !important;
        right: auto !important;
    }
}

@media screen and (max-width: 1024px) {
    #home {
        padding-top: 280px;
    }

    /* Override LTR 1024px: flip text-content */
    #home .text-content {
        left: 0 !important;
        right: auto !important;
        top: -170px !important;
    }

    .hero-text-subheader {
        margin-top: 12px;
    }

    .triggers {
        margin-top: 16px;
    }

    .triggers span {
        font-size: 15px !important;
        font-weight: 300;
        color: #777;
    }

    .bitmap-1-purple {
        right: 220px;
        left: auto;
        top: 140px;
    }

    .bitmap-2 {
        display: block;
        top: 62px;
        right: auto;
    }

    .bitmap-3 {
        display: block;
        top: 220px;
        right: 0;
        left: auto;
    }

    /* Override LTR 1024px slide positions */
    .shutterstock_1190830495d {
        right: 10px !important;
        left: auto !important;
    }

    .shutterstock_665568679 {
        right: 120px !important;
        left: auto !important;
    }

    .slide-item-3 .iStock-904513122 {
        right: 160px;
        left: auto;
    }

    .bitmap-3-green {
        right: 0;
        left: auto;
    }

    .bitmap-2-purple {
        right: 0;
        left: auto;
    }

    #sixth .move-logo {
        margin-top: 6px;
    }

    .lang-content {
        width: 60px;
        right: 50%;
        margin-right: -30px;
    }

    .move-upapp-trigger .check {
        margin-top: 4px;
    }

    /* Override LTR 1024px: flip why-tazman */
    #why-tazman p {
        margin-right: 0;
        margin-left: auto;
    }

    #why-tazman li {
        margin-right: 22px;
        margin-left: 0;
    }

    #why-tazman li::before {
        right: -24px;
        left: auto;
    }

    #why-tazman .illustration-01,
    #why-tazman .illustration-02,
    #why-tazman .illustration-03 {
        margin-right: 60px;
        margin-left: 0;
    }

    #why-tazman .oval-img-blue,
    #why-tazman .oval-img-orange {
        left: 0;
        right: auto;
    }

    #why-tazman .oval-img-green {
        right: 0;
        bottom: -85px;
        transform: rotate(0);
    }

    /* Override LTR 1024px: footer */
    #footer .logo {
        text-align: right;
    }

    #footer .btn {
        margin-left: 0;
    }

    /* Override LTR 1024px: tarifs dropdown */
    #tarifs .dropdown-icon {
        left: 50%;
        right: auto;
        margin-left: -60px;
        margin-right: 0;
    }

    #tarifs .dropdown-icon::before {
        right: -32px;
        left: auto;
    }

    #approved-and-recognized .grid-block-third {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    #approved-and-recognized img {
        margin-bottom: 16px;
    }
}

@media screen and (max-width: 768px) {
    /* RTL word positions for mobile */
    .word:nth-of-type(1) { left: auto; right: 7px; }
    .word:nth-of-type(2) { left: auto; right: 19px; }
    .word:nth-of-type(3) { left: auto; right: 7px; }
    .word:nth-of-type(4) { left: auto; right: 11px; }
    .word-2:nth-of-type(1) { left: auto; right: 8px; }
    .word-2:nth-of-type(2) { left: auto; right: 11px; }
    .word-2:nth-of-type(4) { left: auto; right: 9px; }
    .word-3:nth-of-type(1) { left: auto; right: 18px; }
    .word-3:nth-of-type(2) { left: auto; right: 17px; }
    .word-3:nth-of-type(3) { left: auto; right: 4px; }
    .word-3:nth-of-type(4) { left: auto; right: 20px; }

    #home {
        padding-top: 320px !important;
    }

    .main-header {
        display: none !important;
    }

    #home .text-content {
        top: -280px !important;
    }

    .hero-text {
        font-size: 22px !important;
        text-align: center;
        line-height: 1.1;
    }

    #home h2.hero-text2 {
        margin-top: 8px;
        font-size: 18px;
    }

    .hero-text-trigger {
        justify-content: center;
    }

    .hero-text-subheader {
        text-align: center;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.2;
    }

    .triggers {
        flex-direction: column;
        align-items: start;
        gap: 0;
    }

    /* Override LTR 768px: flip bitmap positions */
    .bitmap-1-purple {
        right: 140px;
        left: auto;
        top: 40px;
    }

    .bitmap-2,
    .bitmap-3 {
        width: 185px;
    }

    .bitmap-2 {
        top: 16px;
    }

    .bitmap-3 {
        top: 96px;
    }

    /* Override LTR 768px: flip slide positions */
    .shutterstock_1190830495d {
        left: auto !important;
        right: -10px !important;
    }

    .iStock-904513122 {
        right: auto !important;
        left: 30px;
    }

    .shutterstock_665568679 {
        right: 40px !important;
        left: auto !important;
    }

    /* Override LTR 768px: flip list indentation */
    #eighth li {
        margin-right: 22px;
        margin-left: 0;
    }

    #eighth li::before {
        right: -22px;
        left: auto;
    }

    /* Override LTR 768px: flip help-block oval */
    .help-block .oval-img-green {
        bottom: 55px !important;
    }

    /* Override LTR 768px: flip animate-text spacing */
    .animate-text-0 p:nth-of-type(3) {
        margin-left: 5px;
        margin-right: 0;
    }

    .animate-text-0 p:nth-of-type(5) {
        margin-left: 5px;
    }

    .move-upapp-icons {
        align-self: center;
        margin-right: 0;
    }

    /* Override LTR 768px: flip quotes */
    #sixth .slide .quotes {
        right: -18px;
        left: auto;
    }
}

@media screen and (max-width: 560px) {
    #header .mob-header-btn {
        width: 100px;
    }
    
    .popup .close-btn {
        width: 24px;
        height: 24px;
    }

    /* Override LTR 560px: flip mob-menu close btn */
    .mob-menu .close-btn {
        right: 12px;
        left: auto;
    }

    #header .mob-menu-hum {
        margin-left: 12px;
        margin-right: 0;
    }

    .faq-question::after {
        left: 14px;
        width: 18px;
        height: 18px;
    }

    .faq-question {
        padding: 12px 12px 12px 36px;
        font-size: 18px;
    }
}

/* --- Privacy --- */

.privacy-wrapper {
    text-align: center;
    margin-top: 2.5rem;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
}

.privacy-text {
    font-size: 0.75rem;
    line-height: 1rem;
}

.privacy-link {
    font-size: 0.75rem;
    color: #0687EB;
    text-decoration: none;
}

.privacy-link:hover {
    color: #0578D3;
}

/* --- Solutions menu --- */

.pc-menu .solutions a,
.mob-menu .solutions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.mob-menu li > a {
    font-size: 16px;
}

#solutions-content-mobile {
    width: inherit;
}
#solutions-content-mobile a {
    margin-top: 12px;
}

.acsb-link {
    left: 10px !important;
    right: auto !important;
}
.acsb-list.acsb-act{
    left: 10px !important;
    right: auto !important;
}

.whatsapp_btn {
    z-index: 10;
    left: auto !important;
    right: 20px !important;
}

.video-block {
    margin-left: 95px;
}
