@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');


:root {
    --tl-ff-body: 'Almarai', sans-serif;
    --tl-ff-heading: 'Almarai', sans-serif;
    --tl-ff-p: 'Almarai', sans-serif;
}

body {
    font-family: 'Almarai', sans-serif;
    font-weight: 700;
}

#scroll-percentage {
    left: 50px !important;
    right: auto !important;
}

/* RTL Adjustments */
body[dir="rtl"],
.rtl-mode[dir="rtl"] {
    direction: rtl !important;
}

/* Navigation Menu - Mirroring */
.main-menu {
    /* Reverse the order of the menu items in RTL */
    display: flex;
    flex-direction: row-reverse;
}

/* Dropdown Menus */
.dropdown-menu {
    /* Dropdown should open to the right in RTL */
    right: auto;
    left: 0;
}

.dropdown-menu.show {
    /* Dropdown alignment for RTL */
    right: auto !important;
    left: 0 !important;
    transform-origin: top right !important;
}

/* Sidebar Menu */
.sidebar-menu ul li.menu-item-has-children>a::after {
    content: "\e924";
    /* Adjust arrow direction if needed */
    left: auto;
    right: 0;
}

/* Breadcrumbs */
.breadcrumb {
    /* Reverse the order of breadcrumb items */
    flex-direction: row-reverse;
}

/* Form Elements */
.contact-form form .form-group:nth-of-type(odd) {
    /* Adjust layout for RTL forms */
    clear: right;
}

/* Social Media Links */
.social-links {
    /* Reverse the order of social links if necessary */
    flex-direction: row-reverse;
}

/* Icon Directions */
.hero-section .shape-1,
.section-heading .shape {
    /* Mirror shapes if they have directional attributes */
    transform: scaleX(-1);
    /* This will flip them horizontally */
}

/* Text Direction Specifics */
.about-content-wrap .about-title h2,
.section-heading .sub-heading,
.service-content h3,
.footer-widget-content h3 {
    /* Ensure text alignment */
    text-align: right !important;
    direction: rtl !important;
    unicode-bidi: embed;
}

/* RTL Typography */
body[dir="rtl"],
body[dir="rtl"] p,
body[dir="rtl"] li {
    font-family: 'Almarai', sans-serif !important;
    direction: rtl;
    text-align: right;
}

/* Mobile Adjustments for RTL */
@media (max-width: 991.98px) {
    .primary-menu ul li a {
        /* Menu items in mobile should be right-aligned */
        text-align: right;
        direction: rtl;
    }

    .sidebar-area.sidebar-show {
        /* Sidebar should open from the right in RTL */
        transform: translateX(0);
    }

    .sidebar-menu ul li.menu-item-has-children>a::after {
        /* Ensure arrow points correctly in RTL mobile */
        content: "\e924";
        left: auto;
        right: 15px;
    }
}

/* Specific Element Fixes */
/* Adjust vertical alignment for RTL elements */
.service-list-item {
    direction: rtl;
    text-align: right;
}

.service-list-item .icon {
    margin-left: auto;
    margin-right: 0;
}

/* Ensure all form inputs have correct RTL behavior */
.contact-form form input,
.contact-form form textarea,
.contact-form form select {
    direction: rtl;
    text-align: right;
}

/* Fix for slider text direction */
.hero-content h1,
.hero-content p {
    direction: rtl;
    text-align: right;
}

/* Checkboxes and Radio Buttons in RTL */
input[type="checkbox"],
input[type="radio"] {
    /* Adjust checkbox/radio positioning for RTL */
    position: relative;
    right: 0;
    left: auto;
    margin-right: 0;
    margin-left: 10px;
}

/* Fix for bullet points and lists */
.service-list,
.about-list {
    list-style-type: none;
    position: relative;
}

.service-list::before,
.about-list::before {
    content: "";
    position: absolute;
    right: -20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--tl-color-theme-primary);
}

.service-list li,
.about-list li {
    position: relative;
    padding-right: 25px;
    padding-left: 0;
}

.service-list li::before,
.about-list li::before {
    content: "\e938";
    /* Checkmark icon from theme */
    position: absolute;
    right: -20px;
    top: 0;
    color: var(--tl-color-theme-primary);
}

/* Specific adjustments for service list items */
.service-list-item {
    border-right: none;
    border-left: 2px solid var(--tl-color-border-1);
    margin-right: 0;
    margin-left: 20px;
    padding-right: 20px;
    padding-left: 0;
}

.service-list-item:last-child {
    border-left: none;
}

/* Adjust icons to be on the left in RTL */
.service-list-item .icon {
    order: -1;
    margin-left: 0;
    margin-right: 15px;
}

.section-heading .sub-heading {
    padding: 11px 24px 10px 25px;
}

.section-heading .sub-heading:before {
    right: 15px;
    left: auto;
}

.slider-2 .slider-item .slider-content-wrap .section-heading .section-title {
    font-size: 72px;
    line-height: 1.2;
    font-weight: 900;
}

.slider-title-2 {
    font-size: 72px !important;
}

.section-heading .section-title.title-2 {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.5;
}

.section-heading {
    align-items: flex-start;
}

.section-heading p {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
}

.tl-primary-btn {
    font-size: 16px;
    font-weight: 700;
    padding: 10px 25px 10px 15px;
}

.tl-primary-btn .icon {
    margin-right: 10px;
    margin-left: 0;
}

.tl-primary-btn i {
    transform: rotate(45deg);
}

.counter-item .title .odometer-auto-theme {
    direction: ltr;
}

.buttons {
    display: flex;
    gap: 15px;
}

.section-heading .sub-heading {
    font-size: 16px;
}

.project-wrap-9 .project-item-3 .project-content {
    right: 40px;
    left: auto;
}

.project-item-3 .project-content .title {
    line-height: 1.5;
    margin-bottom: 10px;
}

.sponsor-text-wrap .sponsor-text {
    font-size: 24px;
    font-weight: 900;
}

.video-content .video-title {
    font-size: 40px;
    font-weight: 400;
}

.video-content .video-title span {
    font-size: 60px;
    font-weight: 900;
}

.video-content {
    padding: 150px 0 130px 0;
}

.service-section .section-heading .section-title {
    font-size: 25px;
    font-weight: 600;
    line-height: 1.8;
    text-align: justify;
}

.service-item .service-top {
    padding-bottom: 0px;
    margin-bottom: 10px;
    border-bottom: 0;
}

.service-item .service-top .title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0;
}

.skill-img img {
    border-radius: 60px;
    padding: 20px;
}

.skill-left-content p {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.5;
}

.skill-section .testi-author {
    display: grid;
    align-items: center;
    grid-template-columns: 64px 1fr;
    gap: 17px;
    margin-top: 20px;
}

.skill-section .testi-author .author-img {
    height: 64px;
    width: 64px;
}

.skill-section .testi-author .author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.skill-section .testi-author .name {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 0px;
}

.skill-section .testi-author .name span {
    font-family: var(--tl-ff-body);
    color: var(--tl-color-text-body);
    font-size: 15px;
    font-weight: 500;
    display: block;
    margin-top: 5px;
}

/* Newsletter RTL Fixes */
.newsletter-wrap .newsletter-form button {
    right: auto !important;
    left: 0 !important;
}

.newsletter-wrap .newsletter-form button i {
    transform: rotate(45deg) !important;
}

.newsletter-wrap .newsletter-form .form-control {
    text-align: right;
    padding-right: 0;
    padding-left: 50px;
}

.section-heading .section-title {
    font-size: 48px;
    line-height: 1.4;
    font-weight: 900;
}

.newsletter-wrap .section-heading p {
    text-align: center;
}

.footer-widget .social-list li:not(:last-of-type):before {
    background-color: var(--tl-color-common-white);
    content: "";
    width: 5px;
    height: 1px;
    position: absolute;
    top: 50%;
    left: 0;
    right: auto;
    transform: translateY(-50%);
}

.footer-widget .social-list li:not(:last-of-type) {
    margin-left: 8px;
    margin-right: 0;
}

.footer-widget .social-list li:not(:last-of-type) {
    margin-left: 13px;
    margin-right: 0;
    padding-left: 13px;
    padding-right: 0;
}

.footer-section {
    padding-bottom: 0;
}

.sidebar-area {
    right: auto;
    left: 0;
    transform: translateX(-100%);
}

.open-sidebar .sidebar-area {
    right: auto;
    left: 0;
    transform: translateX(0);
    visibility: visible;
}

.sidebar-trigger.close {
    right: auto;
    left: 50px;
}

.side-menu-social li:not(:last-of-type) {
    margin-left: 20px;
    margin-right: 0;
}

/*------ Start:: sidebar by ai -----*/
@media only screen and (max-width: 767px) {
    .sidebar-trigger.close {
        right: auto;
        left: 20px;
    }
}

/* Side Menu Navigation Styles */
.side-menu-wrap {
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
}

.side-mobile-menu ul.main-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.side-mobile-menu ul.main-menu li {
    display: block !important;
    width: 100% !important;
    margin-bottom: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-bottom: 10px !important;
    float: none !important;
    /* إلغاء أي Float قديم */
}

.side-mobile-menu ul.main-menu li:last-child {
    border-bottom: none !important;
}

.side-mobile-menu ul.main-menu li a {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    display: block !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    font-family: 'Almarai', sans-serif !important;
    position: relative !important;
    padding: 5px 0 !important;
    text-align: right !important;
}

.side-mobile-menu ul.main-menu li a:hover {
    color: var(--tl-color-theme-primary) !important;
    padding-right: 15px !important;
}

.side-mobile-menu ul.main-menu li a::before {
    content: "";
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 2px;
    background-color: var(--tl-color-theme-primary);
    opacity: 0;
    transition: all 0.3s ease;
}

.side-mobile-menu ul.main-menu li a:hover::before {
    opacity: 1;
    right: 0;
}

/* Adjust contact section in sidebar */
.side-menu-contact {
    margin-top: 30px;
}

/*------ End:: sidebar by ai -----*/

.testimonial-section-4 .testi-bg {
    right: 0;
    left: auto;
}

.testi-item p {
    color: var(--tl-color-heading-primary);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    max-width: 620px;
    width: 100%;
    line-height: 1.5;
    text-align: justify;
}

.testi-item .testi-author .name {
    font-weight: 900;
    line-height: 1.5;
    margin-top: 40px;
}

.testimonial-section-4 h2 {
    font-size: 36px !important;
}