/**
 * RTL (Right-to-Left) Stylesheet for Arabic Version
 * This overrides default LTR styles for Arabic content
 */

/* Global RTL Settings */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

body {
    font-family: 'Tajawal', 'Cairo', 'Roboto', Arial, sans-serif;
    direction: rtl;
    text-align: right;
}

/* Navigation RTL */
.navbar-nav {
    float: left;
}

.navbar-header {
    float: right;
}

.navbar-brand {
    float: right;
}

.navbar-collapse {
    direction: rtl;
}

.mainNav > li {
    float: right;
}

.dropdown-menu {
    text-align: right;
    right: 0;
    left: auto;
}

/* Icons Flip */
.fa-chevron-right:before {
    content: "\f053";
}

.fa-arrow-right:before {
    content: "\f060";
}

.fa-angle-right:before {
    content: "\f104";
}

.fa-angle-down {
    margin-right: 5px;
    margin-left: 0;
}

/* Footer RTL */
#footer {
    direction: rtl;
    text-align: right;
}

.footer-col ul li a i {
    margin-left: 8px;
    margin-right: 0;
}

/* Banner RTL */
.banner-content {
    text-align: right;
}

.banner-actions {
    justify-content: flex-start;
}

.banner-nav {
    flex-direction: row-reverse;
}

.btn-primary i,
.btn-secondary i {
    margin-left: 10px;
    margin-right: 0;
}

/* About Section RTL */
.about-list li i {
    margin-left: 10px;
    margin-right: 0;
}

.about-copy {
    text-align: right;
}

/* Service Cards RTL */
.service-link i {
    transform: rotate(180deg);
}

.service-link:hover i {
    transform: translateX(-5px) rotate(180deg);
}

/* Breadcrumb RTL */
.breadcrumb-header a,
.breadcrumb-header span {
    display: inline-block;
}

/* Form RTL */
input, textarea, select {
    text-align: right;
}

.form-group label {
    text-align: right;
    display: block;
}

/* Contact Info RTL */
.contact-info i {
    margin-left: 15px;
    margin-right: 0;
}

/* Blog RTL */
.blog-meta {
    direction: rtl;
}

/* Social Media RTL */
.socialMediaWrap {
    right: auto;
    left: 0;
}

/* Tags RTL */
.tag-item {
    margin-left: 10px;
    margin-right: 0;
}

/* Lists RTL */
ul, ol {
    padding-right: 20px;
    padding-left: 0;
}

/* Mega Menu RTL */
.mega-tabs {
    border-right: none;
    border-left: 1px solid #e0e0e0;
}

.mega-tab i {
    margin-left: 10px;
    margin-right: 0;
}

/* Grid RTL */
.about-grid {
    direction: rtl;
}

/* Stat Cards RTL */
.stat-card {
    text-align: right;
}

/* Section Headers RTL */
.section-header {
    text-align: center;
}

.section-badge i {
    margin-left: 8px;
    margin-right: 0;
}

/* Service Grid RTL */
.service-item a i {
    margin-left: 8px;
    margin-right: 0;
}

/* Mission Vision RTL */
.mv-box {
    text-align: right;
}

.mv-icon {
    margin-left: auto;
    margin-right: 0;
}

/* Mobile Menu RTL */
@media (max-width: 768px) {
    .navbar-toggle {
        float: left;
        margin-left: 15px;
        margin-right: 0;
    }
    
    .navbar-brand {
        margin-right: 0;
        margin-left: 15px;
    }
    
    .banner-actions {
        flex-direction: column;
    }
}

/* Language Switcher */
.langSwitch {
    float: left;
}

/* Additional Arabic Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Tajawal', 'Cairo', 'Roboto', Arial, sans-serif;
    font-weight: 700;
}

p {
    line-height: 1.9;
}

/* Fix for chevron icons in footer */
.footer-col ul li a .fas.fa-chevron-right {
    transform: rotate(180deg);
    display: inline-block;
}

/* Booking Popup RTL */
.booking-form {
    direction: rtl;
    text-align: right;
}

/* Contact Form RTL */
.contact-form input,
.contact-form textarea,
.contact-form select {
    text-align: right;
    padding-right: 15px;
}

/* Blog Cards RTL */
.blog-card {
    text-align: right;
}

.read-more-btn i {
    transform: rotate(180deg);
    margin-right: 5px;
}

/* Service Section RTL */
.services-list li .tick-icon {
    margin-left: 10px;
    margin-right: 0;
}

.hero-content .section-title{
    justify-content: right;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Arabic Footer Theme - matches English footer styling */
#footer {
    direction: rtl;
    text-align: right;
    background: linear-gradient(135deg, #0b3c5d 0%, #1f7a8c 100%);
    color: white;
    font-family: 'Tajawal', 'Cairo', 'Roboto', Arial, sans-serif;
    padding: 50px 0 20px 0;
    position: relative;
    margin-top: 0 !important;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4fd1c5, #1f7a8c, #4fd1c5);
}

.footer-top {
    padding: 0 0 30px 0;
}

.footer-top .footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-col-header {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(79,209,197,0.3);
}

.footer-col-header i {
    font-size: 20px;
    color: #4fd1c5;
}

.footer-col h4 {
    font-size: 18px;
    margin: 0;
    color: #fff;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
    font-size: 15px;
    padding: 4px 0;
}

.footer-col ul li a i {
    font-size: 0.7rem;
    color: #4fd1c5;
    transition: transform 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-right: 8px;
    padding-left: 0;
}

.footer-col ul li a:hover i {
    transform: translateX(-4px);
}

.footer-col ul li .view-all-link {
    color: #4fd1c5;
    font-weight: 600;
    margin-top: 8px;
}

.footer-col ul li .view-all-link:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0 0 0;
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 30px;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-content p {
    margin: 0;
}

#toTop {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #1f7a8c, #4fd1c5);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-align: center;
    line-height: 48px;
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(31,122,140,0.4);
}

#toTop i {
    font-size: 1.2rem;
}

#toTop:hover {
    background: linear-gradient(135deg, #0b3c5d, #1f7a8c);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(31,122,140,0.5);
}

@media (max-width: 992px) {
    .footer-top .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    #footer {
        padding: 35px 0 15px 0;
    }

    .footer-col-header {
        margin-bottom: 15px;
    }

    .footer-col h4 {
        font-size: 1.1rem;
    }

    #toTop {
        width: 42px;
        height: 42px;
        line-height: 42px;
        bottom: 20px;
        right: 20px;
    }
}

/* Custom Arabic Font Import */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&family=Cairo:wght@300;400;500;600;700&display=swap');
