/* =====================================================
   AI Solutions Business Group — Arabic RTL Stylesheet
   Overrides and RTL-specific rules
   ===================================================== */

/* ---------- Arabic Font Override ---------- */
.rtl-body {
    font-family: 'Cairo', 'Tajawal', 'Inter', sans-serif;
    direction: rtl;
    text-align: right;
}

/* ---------- General RTL Flips ---------- */
.rtl-body * {
    direction: rtl;
}

/* ---------- Navbar RTL ---------- */
.rtl-body .nav-container {
    flex-direction: row-reverse;
}

.rtl-body .nav-actions {
    flex-direction: row-reverse;
}

.rtl-body .nav-links {
    flex-direction: row-reverse;
}

.rtl-body .dropdown-menu {
    left: auto;
    right: 0;
}

.rtl-body .dropdown-menu li a {
    flex-direction: row-reverse;
    text-align: right;
}

.rtl-body .nav-link i.fa-chevron-down {
    margin-right: 6px;
    margin-left: 0;
}

/* ---------- Language Switcher ---------- */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.lang-switcher:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

/* ---------- Hero RTL ---------- */
.rtl-body .hero-content {
    text-align: right;
}

.rtl-body .hero-badge {
    flex-direction: row-reverse;
}

.rtl-body .hero-stats {
    flex-direction: row-reverse;
}

.rtl-body .hero-actions {
    flex-direction: row-reverse;
}

.rtl-body .btn-primary,
.rtl-body .btn-outline {
    flex-direction: row-reverse;
}

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

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

.rtl-body .about-badge-card {
    right: auto;
    left: -20px;
    flex-direction: row-reverse;
}

.rtl-body .about-feature {
    flex-direction: row-reverse;
    text-align: right;
}

.rtl-body .about-feature div {
    text-align: right;
}

/* ---------- Why Us Cards ---------- */
.rtl-body .why-card {
    text-align: center;
}

/* ---------- Domain Cards ---------- */
.rtl-body .domain-body {
    text-align: right;
}

.rtl-body .domain-tags {
    justify-content: flex-end;
}

/* ---------- Solutions Tabs RTL ---------- */
.rtl-body .solutions-tabs {
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: center;
}

.rtl-body .tab-btn {
    flex-direction: row-reverse;
}

.rtl-body .solution-detail {
    direction: rtl;
}

.rtl-body .solution-info {
    text-align: right;
}

.rtl-body .sol-badge {
    flex-direction: row-reverse;
}

.rtl-body .sol-features li {
    flex-direction: row-reverse;
    text-align: right;
}

.rtl-body .sol-features li i {
    margin-left: 0;
    margin-right: 0;
}

/* ---------- Services Cards RTL ---------- */
.rtl-body .service-card {
    text-align: right;
}

.rtl-body .service-number {
    right: auto;
    left: 20px;
    font-family: 'Cairo', sans-serif;
}

.rtl-body .service-card.featured .service-number {
    top: 44px;
}

.rtl-body .service-card.featured::before {
    right: auto;
    left: 16px;
    content: 'الخدمة الرئيسية';
}

.rtl-body .service-list li {
    flex-direction: row-reverse;
    text-align: right;
}

.rtl-body .service-list li::before {
    margin-right: 0;
    margin-left: 0;
}

.rtl-body .service-link {
    flex-direction: row-reverse;
}

.rtl-body .service-link i {
    transform: scaleX(-1);
}

/* ---------- GCC Section RTL ---------- */
.rtl-body .gcc-layout {
    direction: rtl;
}

.rtl-body .gcc-stat-card {
    flex-direction: row-reverse;
    text-align: right;
}

.rtl-body .gcc-stat-info {
    text-align: right;
}

/* ---------- Contact Section RTL ---------- */
.rtl-body .contact-layout {
    direction: rtl;
}

.rtl-body .contact-info-col {
    text-align: right;
}

.rtl-body .contact-item {
    flex-direction: row-reverse;
    text-align: right;
}

.rtl-body .contact-item-text {
    text-align: right;
}

.rtl-body .contact-social {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.rtl-body .form-group label {
    text-align: right;
}

.rtl-body .form-group input,
.rtl-body .form-group select,
.rtl-body .form-group textarea {
    text-align: right;
    direction: rtl;
}

.rtl-body .form-group select option {
    direction: rtl;
    text-align: right;
}

/* ---------- Footer RTL ---------- */
.rtl-body .footer-grid {
    direction: rtl;
}

.rtl-body .footer-brand {
    text-align: right;
}

.rtl-body .footer-col {
    text-align: right;
}

.rtl-body .footer-col ul li a {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rtl-body .footer-col ul li a::before {
    content: '‹';
    margin-right: 0;
    margin-left: 4px;
}

.rtl-body .footer-contact-list li {
    flex-direction: row-reverse;
    text-align: right;
    justify-content: flex-end;
}

.rtl-body .footer-contact-list li i {
    margin-left: 10px;
    margin-right: 0;
}

.rtl-body .footer-social {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.rtl-body .footer-bottom .container {
    flex-direction: row-reverse;
}

/* ---------- Ticker RTL ---------- */
.rtl-body .ticker-wrap {
    direction: ltr; /* Keep animation direction consistent */
}

.rtl-body .ticker-item {
    flex-direction: row-reverse;
}

/* ---------- Arabic Typography Enhancements ---------- */
.rtl-body .hero-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.3;
}

.rtl-body .section-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.4;
}

.rtl-body .preloader-logo {
    font-family: 'Cairo', sans-serif;
}

.rtl-body h1,
.rtl-body h2,
.rtl-body h3,
.rtl-body h4 {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    letter-spacing: 0;
}

.rtl-body p,
.rtl-body li,
.rtl-body span,
.rtl-body a,
.rtl-body button,
.rtl-body label,
.rtl-body input,
.rtl-body select,
.rtl-body textarea {
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

/* ---------- Section Tag RTL ---------- */
.rtl-body .section-tag {
    letter-spacing: 0;
    font-family: 'Cairo', sans-serif;
}

/* ---------- Sol img grid RTL ---------- */
.rtl-body .solution-detail {
    grid-template-columns: 1.1fr 1fr;
}

/* ---------- Hero Subtitle RTL ---------- */
.rtl-body .hero-subtitle {
    max-width: 700px;
    line-height: 2;
}

/* ---------- Stat Labels RTL ---------- */
.rtl-body .stat-label {
    font-family: 'Cairo', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0;
}

/* ---------- Domain overlay RTL ---------- */
.rtl-body .domain-overlay-content p {
    text-align: right;
}

/* ---------- About badge RTL ---------- */
.rtl-body .about-badge-card strong,
.rtl-body .about-badge-card span {
    text-align: right;
    display: block;
}

/* ---------- Responsive RTL Adjustments ---------- */
@media (max-width: 1024px) {
    .rtl-body .about-badge-card {
        left: 0;
    }
}

@media (max-width: 768px) {
    .rtl-body .nav-links.open {
        direction: rtl;
        text-align: right;
    }

    .rtl-body .hero-actions {
        flex-direction: column;
        align-items: flex-end;
    }

    .rtl-body .hero-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .rtl-body .solutions-tabs {
        flex-direction: row-reverse;
    }

    .rtl-body .form-row {
        grid-template-columns: 1fr;
    }

    .rtl-body .footer-bottom .container {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .rtl-body .hero-actions {
        align-items: stretch;
    }
}
