/* ===== main_ar.css - Arabic Version Overrides ===== */
/* This file should be loaded AFTER main.css in the Arabic page */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');
@font-face {
    font-family: 'AvenirRegular';
    src:url('/fonts/AvenirRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ===== 1. RTL BASE DIRECTION FIXES ===== */
body {
    direction: rtl;
    text-align: right;
}

/* ===== 2. NAVIGATION BAR (topnav) RTL FIXES ===== */
.topnav {
    direction: rtl;
}

/* Reverse the logo and title positioning */
.topnav .title {
    flex-direction: row-reverse;
    right: 0;
    left: auto;
}

/* Align home text to the right */
.topnav .title .home {
    text-align: right;
    margin-right: 10px;
    margin-left: 0;
}

/* Reverse navigation links order */
.topnav .nav-desktop {
    flex-direction: row-reverse;
}

/* Language switcher (globe) moves to far left */
.topnav .nav-desktop .dropdown.translate {
    order: -1;
    margin-left: 0;
    margin-right: auto;
}

/* "Contact Us" button positioning */
.topnav .nav-desktop a.right {
    order: 2;
}

/* Individual navigation links spacing */
.topnav .nav-desktop a,
.topnav .nav-desktop .dropbtn a {
    margin: 0 0 0 5px;
    font-family: 'AvenirRegular';
}

/* ===== 3. DROPDOWN MENU RTL FIXES ===== */
.dropdown {
    position: relative;
}

/* Dropdown content opens to the right */
.dropdown .dropdown-content {
    right: 0;
    left: auto;
    text-align: right;
}

/* Dropdown links alignment */
.dropdown-content a {
    text-align: right;
    direction: rtl;
}

/* ===== 4. HERO SECTION RTL FIXES ===== */
.hero-content {
    left: auto;
    right: 6%;
    text-align: right;
}
.hero-content h2{
    font-family: "Cairo", sans-serif;
}
.hero-content p{
    font-family: 'AvenirRegular';
}
/* Hero drone image position */
.hero-image2 {
    left: auto;
    right: -20px;
}
.hero-image{
    transform: scaleX(-1);
}

/* ===== 5. SLIDER CONTENT RTL FIXES ===== */
.service-slide {
    padding-left: 0;
    padding-right: 5%;
}

.service-slide .slide-content {
    text-align: right;
    transform: translateX(50px) translateY(80px);
}

.service-slide.active .slide-content {
    transform: translateX(0) translateY(80px);
}

.slide-description {
    padding-left: 0;
    padding-right: 10px;
}

.learn-more {
    float: right;
}

.learn-more:hover {
    transform: translateX(-2px);
}

/* ===== 6. SLIDER ARROWS RTL FIXES ===== */
.left-arrow {
    left: auto;
    right: 20px;
}

.right-arrow {
    right: auto;
    left: 20px;
}

/* Mirror arrow icons */
.slider-arrow i {
    transform: scaleX(-1);
}

.left-arrow i,
.right-arrow i {
    transform: scaleX(-1);
}

/* ===== 7. HOVER NAVIGATION RTL FIXES ===== */
.hover-nav i {
    transform: scaleX(-1);
}

/* ===== 8. SECTION TITLES ===== */
.section-title {
    text-align: center;
}

/* ===== 9. HOW WE WORK SECTION RTL FIXES ===== */
.how-we-work-section {
    direction: rtl;
}

.how-we-work-header {
    text-align: center;
}

/* Timeline steps RTL */
.steps-timeline {
    flex-direction: row;
}

.timeline-card {
    text-align: center;
}

/* ===== 10. CTA SECTION RTL FIXES ===== */
.cta-section {
    direction: rtl;
}
.cta-section h2{
    font-family: 'AvenirRegular';
}
.cta-section .frame {
    text-align: center;
}

.cta-section p {
    font-family: "Cairo", sans-serif;
    margin-left: auto;
    margin-right: auto;
}
.cta-section .cta-button a {
    font-family: 'AvenirRegular';
}

/* ===== 11. SCROLL INDICATOR ===== */
.scroll-indicator {
    direction: rtl;
}

/* ===== 12. BOTTOM NAVIGATION BAR (footer) RTL FIXES ===== */
.bottom-navigation-bar {
    direction: rtl;
}

.bottom-navigation-bar .upper {
    flex-direction: row;
}

.bottom-navigation-bar .section ul {
    padding-right: 0;
}

.bottom-navigation-bar .section ul li {
    text-align: right;
    list-style: none;
}

.bottom-navigation-bar .section ul li i {
    margin-left: 8px;
    margin-right: 0;
}

/* Social icons alignment */
.bottom-navigation-bar .social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
}

/* ===== 13. RESPONSIVE RTL FIXES ===== */
@media screen and (max-width: 768px) {
    .hero-content {
        right: 5%;
        left: auto;
    }
    
    .service-slide {
        padding-right: 4%;
        padding-left: 0;
    }
    
    .slide-content {
        text-align: right;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .left-arrow {
        right: 10px;
        left: auto;
    }
    
    .right-arrow {
        left: 10px;
        right: auto;
    }
}

@media screen and (max-width: 480px) {
    .hero-content {
        right: 5%;
        left: auto;
    }
}

/* ===== DROPDOWN RTL FIXES ===== */
/* Make dropdown content open to the right side */
.dropdown .dropdown-content {
    right: 0;
    left: auto;
}

/* Ensure dropdown text alignment is correct for RTL */
.dropdown-content a {
    text-align: right;
    direction: rtl;
}

/* Adjust dropdown button positioning if needed */
.dropdown .dropbtn {
    direction: rtl;
}

/* For nested dropdowns or special cases */
.dropdown-content {
    transform-origin: top right;
}

/* Optional: Adjust hover effect for RTL */
.dropdown:hover .dropdown-content {
    display: block;
    right: 0;
    left: auto;
}

/* ===== BOTTOM NAVIGATION BAR FONTS ===== */
.bottom-navigation-bar .section h1{
    text-align: right;
    font-family: 'AvenirRegular';
}

.bottom-navigation-bar .section a{
    font-family: "Cairo", sans-serif;
}

.bottom-navigation-bar .section li:hover {
    transform: translateX(-5px);
}

/* ===== SLIDER FONTS ===== */
.slide-title{
    font-family: 'AvenirRegular';
}
.slide-description{
    font-family: "Cairo", sans-serif;
}

/* ===== ABOUT US PAGE RTL OVERRIDES ===== */
/* About Us page container adjustments for RTL */
.sectionbox .container {
    padding: 30px 40px;
}

/* First intro box - remove border/line and adjust padding */
.sectionbox .container:first-of-type .box {
    border-right: none !important;
    border-left: none !important;
    padding-right: 0;
    padding-left: 0;
}

.sectionbox .container:first-of-type .box p {
    padding-right: 0;
    padding-left: 0;
    text-align: justify;
}

/* Remove line from first container if present */
.sectionbox .container:first-of-type .line {
    display: none;
}

/* About Us page text alignment */
.sectionbox .container .box .title {
    text-align: right;
    font-family: 'AvenirRegular';
}

.sectionbox .container .box p {
    text-align: right;
    font-family: "Cairo", sans-serif;
    padding-right: 0;
    padding-left: 0;
}

.sectionbox .container .line {
    margin: 10px 0 20px 0;
}

/* Box borders for About Us - remove left border, keep right */
.sectionbox .container .box {
    border-left: none !important;
    border-right: 3px solid #eb662300;
}

/* Full width boxes - consistent styling */
.sectionbox .container .box.full-width {
    border-right: 3px solid #eb662300;
}

/* Values list RTL */
.values-list {
    padding-right: 20px;
    padding-left: 0;
}

.values-list li {
    text-align: right;
    position: relative;
    padding-right: 24px;
    padding-left: 0;
}

.values-list li::before {
    content: "▹";
    color: #eb6623;
    font-size: 1.1rem;
    position: absolute;
    right: 0;
    left: auto;
    top: 0;
}

/* Header section */
.sectionbox .header .items {
    text-align: center;
}

.sectionbox .slogon {
    text-align: center;
    font-family: "Cairo", sans-serif;
}

/* Full width box titles */
.box.full-width .title {
    text-align: right;
}

/* Closing statement RTL */
.closing-statement {
    text-align: center;
}

.closing-statement p {
    font-family: "Cairo", sans-serif;
}

/* Responsive RTL adjustments for About Us */
@media (max-width: 768px) {
    .sectionbox .container {
        padding: 20px 20px;
    }
    
    .values-list {
        padding-right: 15px;
        padding-left: 0;
    }
    
    .values-list li {
        padding-right: 20px;
        padding-left: 0;
    }
    
    .sectionbox .container .box p {
        text-align: justify;
    }
}

@media (max-width: 480px) {
    .sectionbox .container {
        padding: 15px 15px;
    }
    
    .values-list {
        padding-right: 10px;
        padding-left: 0;
    }
    
    .values-list li {
        padding-right: 18px;
        padding-left: 0;
    }
}

/* ===== SERVICES PAGE FIXES ===== */
/* Fix services page - position bac relative to sectionbox, not body */
.sectionbox {
    position: relative;
    background: rgb(3 5 6 / 85%);
    padding-bottom: 1rem;
}

.bac {
    z-index: 0;
    height: 300px;
}

/* Fix header items positioning */
.sectionbox .header .items {
    position: relative;
    z-index: 1;
}

/* Services header fonts */
.sectionbox .header .items .title {
    font-family: 'AvenirRegular';
    text-align: center;
}

.sectionbox .header .items h2 {
    font-family: "Cairo", sans-serif;
    text-align: center;
}

/* Fix services box borders for RTL */
.sectionbox .box {
    border-left: none;
    border-right: 3px solid #eb6623;
}

.sectionbox .box.right {
    border-right: none;
    border-left: 3px solid #eb6623;
}

.sectionbox .container{
    padding-top: 30px;
    position: relative;
    z-index: 1;
}

/* Fix services box content alignment */
.sectionbox .container .box .title {
    text-align: right;
}

.sectionbox .container .box p {
    text-align: right;
}

/* Fix services line position */
.sectionbox .container .line {
    margin: 10px 0 20px 0;
    margin-right: 4px;
}

/* Fix read more button for RTL */
.read-more-btn {
    float: right;
    margin-left: 0;
    margin-right: 12px;
}

/* Fix image box padding for RTL */
.sectionbox .box .image-box {
    padding-left: 0;
    padding-right: 20px;
}

/* Mobile RTL fixes for services */
@media screen and (max-width: 768px) {
    .sectionbox .box {
        border-right: 3px solid #eb6623;
        border-left: none;
    }
    
    .sectionbox .box.right {
        border-right: 3px solid #eb6623;
        border-left: none;
    }
    
    .sectionbox .box .content {
        padding-left: 0;
        padding-right: 10px;
    }
    
    .read-more-btn {
        float: right;
        margin-right: 12px;
        margin-left: 0;
    }
}

/* ===== BLOG PAGE FONTS ===== */
.sidebar-widget h3, .blog-hero-content h1{
    font-family: 'AvenirRegular';
}

.category-list a, .blog-hero-content p{
    font-family: 'Cairo';
}

.scroll-indicator{
    font-family: 'Cairo';
    text-align: center;
}

.topnav .nav-desktop .dropdown.translate .dropdown-content{
    right: auto;
    left: 0;
}
.latest-title h2{
    font-family: 'Cairo', sans-serif;
    text-align: center;
    font-size: 1.6rem;
    color: #eb6623;
    margin-bottom: 0.5rem;
}
.latest-title .line{
    width: 100px;
    height: 2px;
    background: #eb6623;
    margin: 0 auto;
    margin-bottom: 2rem;
}
.sidebar-widget{
    font-family: 'AvenirRegular';
}
.no-posts h3{
    font-family: 'Cairo';
}
.no-posts p{
    font-family: 'AvenirRegular';
}