/* Hebrew RTL Support CSS */

/* Global RTL setup */
html {
    direction: rtl;
}

body {
    direction: rtl;
    text-align: right;
    font-family: 'Assistant', 'Open Sans Hebrew', 'Rubik', 'Heebo', 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;
    unicode-bidi: embed;
}

/* Header adjustments */
#mainmenu {
    direction: rtl;
    text-align: right;
}

#mainmenu li {
    float: right;
}

#mainmenu ul {
    right: 0;
    left: auto;
}

/* Topbar adjustments */
#topbar .header-widget {
    direction: rtl;
}

#topbar .social-icons {
    float: left;
}

.topbar-widget {
    margin-left: 20px;
    margin-right: 0;
}

/* Logo adjustments */
#logo {
    float: right;
}

/* Menu side area */
.menu_side_area {
    direction: rtl;
}

.h-phone {
    margin-right: 20px;
    margin-left: 0;
}

/* Content alignment */
.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

/* Slider content */
.slider-title, .slider-teaser {
    direction: rtl;
    text-align: right;
}

.sw-text-wrapper {
    direction: rtl;
    text-align: right;
}

/* Services and pricing */
.pricing-item, .service-item {
    direction: rtl;
    text-align: right;
}

/* Forms */
.form-control {
    direction: rtl;
    text-align: right;
}

input[type="text"], input[type="email"], textarea {
    direction: rtl;
    text-align: right;
}

/* Footer */
footer {
    direction: rtl;
}

footer .widget ul {
    padding-right: 0;
    padding-left: 15px;
}

/* Breadcrumbs */
.crumb {
    direction: rtl;
}

.crumb li {
    float: right;
}

.crumb li:after {
    margin: 0 8px 0 0;
}

/* Icons alignment */
.icofont-location-pin:before,
.icofont-envelope:before,
.icofont-phone:before,
.icofont-clock-time:before {
    margin-left: 8px;
    margin-right: 0;
}

/* Fix checkmarks alignment */
.feature-box ul li:before,
.pricing-card ul li:before {
    right: 0;
    left: auto;
    margin-left: 8px;
    margin-right: 0;
}

/* Header adjustments - remove phone and button */
.h-phone {
    display: none !important;
}

.menu_side_area .btn-line {
    display: none !important;
}

/* Show btn-line only in content areas */
.btn-line:not(.menu_side_area .btn-line) {
    display: inline-block !important;
}

/* Logo positioning */
#logo {
    float: right;
    order: 1;
}

/* Image positioning fixes */
.sw-anim {
    right: auto !important;
    left: 0 !important;
}

/* Welcome section background image positioning */
.relative .sw-anim {
    left: 20px !important;
    right: auto !important;
}

/* Button spacing */
.btn-main {
    margin-left: 10px;
    margin-right: 0;
}

/* Spacing adjustments for RTL */
.me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

.ms-3 {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

/* Accordion RTL */
.accordion-section-title {
    direction: rtl;
    text-align: right;
}

.accordion-section-content {
    direction: rtl;
    text-align: right;
}

/* Statistics counters */
.de_count {
    direction: rtl;
    text-align: center;
}

/* Team section */
.social-icons a {
    margin: 0 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #mainmenu li {
        float: none;
        text-align: right;
    }
    
    .topbar-widget {
        margin-left: 10px;
        margin-right: 0;
    }
}

/* Specific Hebrew font improvements */
* {
    direction: rtl;
    text-align: right;
    unicode-bidi: embed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Assistant', 'Open Sans Hebrew', 'Rubik', 'Heebo', 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.slider-title {
    line-height: 1.1 !important;
    font-family: 'Assistant', 'Open Sans Hebrew', 'Rubik', 'Heebo', sans-serif;
    font-weight: 800;
}

.slider-teaser {
    line-height: 1.4 !important;
    font-family: 'Assistant', 'Open Sans Hebrew', 'Heebo', sans-serif;
}

p, li, span {
    line-height: 1.6;
    font-family: 'Assistant', 'Open Sans Hebrew', 'Heebo', 'Segoe UI', sans-serif;
}

/* Fix Hebrew punctuation */
.hebrew-text {
    text-align: right;
    direction: rtl;
}

/* Fix for quote marks and punctuation */
p:lang(he), span:lang(he), h1:lang(he), h2:lang(he), h3:lang(he), h4:lang(he), h5:lang(he), h6:lang(he) {
    quotes: '"' '"' "'" "'";
}

/* Banner title spacing */
.sw-text-wrapper h1,
.sw-text-wrapper h2 {
    margin-bottom: 10px;
    line-height: 1.1;
}

/* Scroll to top button */
#back-to-top {
    right: auto;
    left: 20px;
}

#back-to-top:before {
    content: "חזור למעלה";
    font-size: 12px;
    position: absolute;
    bottom: 60px;
    right: -10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    font-family: 'Assistant', 'Heebo', sans-serif;
    direction: rtl;
}

/* Add Hebrew translation directly in CSS */
#back-to-top:after {
    content: "חזור למעלה";
    position: absolute;
    bottom: -25px;
    right: 50%;
    transform: translateX(50%);
    font-size: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    font-family: 'Assistant', 'Heebo', sans-serif;
    direction: rtl;
}

#back-to-top:hover:after {
    opacity: 1;
}

#back-to-top:hover:before {
    opacity: 1;
}

/* Better Hebrew typography */
.hebrew-text p,
.hebrew-text h1,
.hebrew-text h2,
.hebrew-text h3,
.hebrew-text h4,
.hebrew-text h5,
.hebrew-text h6 {
    direction: rtl;
    text-align: right;
    font-family: 'Assistant', 'Heebo', 'Rubik', sans-serif;
}

/* Fix testimonial styling */
.testimonial-text {
    direction: rtl;
    text-align: right;
    font-family: 'Assistant', 'Heebo', sans-serif;
    line-height: 1.6;
}

/* Fix list styling for Hebrew */
.ul-style-2 li {
    direction: rtl;
    text-align: right;
    padding-right: 30px;
    padding-left: 0;
}

.ul-style-2 li:before {
    right: 0;
    left: auto;
}

/* Better font sizes for Hebrew headers */
.fs-72 {
    font-size: 60px !important;
}

.fs-64 {
    font-size: 60px !important;
}

/* Fix pricing title font sizes */
.section-dark h2 .alt-font {
    font-size: 60px !important;
}

.section-dark h2 {
    font-size: 60px !important;
}

/* Fix FAQ title font sizes */
.section-light h2 .alt-font,
.section-light h2 span {
    font-size: 60px !important;
}

.section-light h2 {
    font-size: 60px !important;
}

/* Ensure consistent font sizes for all Hebrew titles */
h2 .alt-font,
h2 span.alt-font {
    font-size: inherit !important;
}

/* Center align all headers and titles */
.section-light h2,
.section-dark h2,
.section h2,
h2.wow {
    text-align: center !important;
}

.subtitle {
    text-align: center !important;
}

/* Fix leaf positioning to left */
.sw-anim img[src*="leaf"],
img[src*="leaf"] {
    left: 0 !important;
    right: auto !important;
}

/* Fix banner spacing */
.swiper-inner {
    padding-top: 40px !important;
}

.sw-text-wrapper {
    margin-top: -20px;
}

/* Fix testimonial alignment */
.testimonial-section {
    text-align: right;
    direction: rtl;
}

.testimonial-section .col-lg-8 {
    text-align: right;
    padding-right: 20px;
}

/* Fix section titles alignment */
.section .subtitle,
.section h2 {
    text-align: center !important;
}

/* Fix professional services section */
.relative.mb-3 h4 {
    text-align: center !important;
    font-weight: 600;
}

/* Fix leaf image specifically */
img[src*="leaf.webp"] {
    left: 0 !important;
    right: auto !important;
}

/* Remove problematic image */
.sw-anim img[src*="flowers"] {
    display: none;
}

/* Fix pricing cards images that override text */
.pricing-card .absolute.circle,
.relative .absolute.circle {
    display: none !important;
}

/* Better pricing card layout */
.pricing-card .relative,
.bg-white .relative {
    padding-top: 20px !important;
}

/* Fix punctuation marks for Hebrew */
.hebrew-punctuation {
    direction: rtl;
    unicode-bidi: embed;
}

/* Pricing section improvements */
.section-dark .container {
    direction: rtl;
}

.section-dark h2 {
    text-align: center;
    direction: rtl;
}

.section-dark .subtitle {
    text-align: center;
    direction: rtl;
}

.section-dark .lead {
    text-align: center;
    direction: rtl;
}

/* Fix RTL for pricing cards content */
.pricing-card p,
.bg-white p {
    direction: rtl;
    text-align: right;
    line-height: 1.6;
}

.pricing-card ul,
.bg-white ul {
    direction: rtl;
    text-align: right;
}

.pricing-card ul li,
.bg-white ul li {
    text-align: right;
    direction: rtl;
}

/* Hebrew quotation marks */
.hebrew-quote:before {
    content: '"';
}

.hebrew-quote:after {
    content: '"';
}

/* Better font rendering for Hebrew currency */
.id-color-2 {
    font-family: 'Assistant', 'Heebo', 'Rubik', sans-serif !important;
}

/* Fix header centering */
.text-center {
    text-align: center !important;
    direction: rtl;
}

/* Improve pricing card spacing */
.pricing-card .p-3,
.bg-white .p-3 {
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
}

/* Fix button alignment */
.btn-light-trans {
    direction: ltr;
    text-align: center;
}

/* Better price display styling */
.pricing-card .mb-3,
.bg-white .mb-3 {
    direction: rtl;
    text-align: center;
}

.pricing-card .fs-14,
.bg-white .fs-14 {
    font-weight: 400;
    color: #666;
}

/* Pricing cards RTL */
.pricing-card {
    direction: rtl;
    text-align: right;
}

.pricing-card ul {
    text-align: right;
    padding-right: 0;
    padding-left: 20px;
}

/* Service cards RTL */
.service-card {
    direction: rtl;
    text-align: center;
}

/* Contact form RTL */
.contact-form {
    direction: rtl;
}

.contact-form input,
.contact-form textarea {
    text-align: right;
}

/* Navigation arrows */
.swiper-button-next,
.swiper-button-prev {
    transform: scaleX(-1);
}

/* Float adjustments */
.float-right {
    float: left !important;
}

.float-left {
    float: right !important;
}

/* Margin and padding RTL utilities */
.mr-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.ml-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

/* Flex direction for RTL */
.d-flex {
    direction: ltr;
}

.d-flex.rtl {
    direction: rtl;
}

/* Grid RTL adjustments */
.row {
    direction: ltr;
}

.row.rtl {
    direction: rtl;
}

/* Text direction utilities */
.dir-rtl {
    direction: rtl !important;
    text-align: right !important;
}

.dir-ltr {
    direction: ltr !important;
    text-align: left !important;
}

/* Mobile specific styles */
@media (max-width: 767px) {
    /* Remove white backgrounds from professional training cards on mobile */
    .relative.mb-3,
    .relative.mb-3 .rounded-20px,
    .relative.mb-3 .shadow-soft {
        background: transparent !important;
        background-color: transparent !important;
    }
    
    /* Ensure training card content is visible on transparent background */
    .relative.mb-3 h4,
    .relative.mb-3 p {
        color: inherit !important;
    }
}

/* Footer centering */
.footer-light .row {
    justify-content: center;
}

.footer-light .widget {
    text-align: center;
}

.footer-light .widget h5 {
    text-align: center;
}

.footer-light .widget ul {
    padding: 0;
    display: inline-block;
    text-align: right;
}

.footer-light .widget-contact .d-flex {
    justify-content: center;
}

.footer-light img {
    display: block;
    margin: 0 auto;
}
