
:root {
    --arabic-font: 'Cairo', sans-serif;
}

body {
  direction: rtl;
  text-align: right;
  font-family: var(--arabic-font);
}

h1, h2, h3, h4, .btn, .nav-link, .timer-unit p {
    font-family: var(--arabic-font);
}

/* Header & Navigation */
.has-dropdown > a .fa-angle-down {
  margin-right: 0.3rem;
  margin-left: 0;
}

.dropdown-menu {
  left: 50%;
  right: auto; /* Unset right property from any previous attempts */
  transform: translateX(-50%) translateY(10px); /* Universal centering */
}

.has-dropdown.dropdown-open > .dropdown-menu {
  margin-left: 0; /* Remove the problematic margin from the LTR stylesheet */
  transform: translateX(-50%) translateY(0); /* Re-apply centering transform on open */
}

.dropdown-menu a {
  text-align: right;
}

/* Mobile Nav */
@media (max-width: 992px) {
    #main-nav {
        left: 0;
        right: auto;
        transform: translateX(-100%);
    }
    .main-header.nav-open #main-nav {
        transform: translateX(0);
    }
     #main-nav > ul {
        align-items: flex-end;
    }
    .nav-link {
        justify-content: flex-end;
    }
    .dropdown-menu a {
        padding-right: 2.5rem;
        padding-left: 1.5rem;
        margin-right: -115px;
    }
    .mobile-header-lang-switcher {
        margin-right: auto;
        margin-left: 0.5rem;
    }
}


/* Language Switcher */
.lang-switcher {
    margin-left: 0;
    margin-right: 1rem;
}


/* General Layout & Content */
.why-qatar-text li {
  padding-left: 0;
  padding-right: 2.5rem;
}
.why-qatar-text li::before {
  left: auto;
  right: 0;
}

.lead-capture-features li {
    gap: 0 0.75rem;
}
.lead-capture-features li i {
    margin-left: 0.5rem;
    margin-right: 0;
}

.testimonial-card blockquote {
    border-left: none;
    border-right: 3px solid #d12386;
    padding-left: 0;
    padding-right: 1.5rem;
}
.testimonial-author {
  gap: 0 1rem;
}

.timeline-item {
    padding-left: 0;
    padding-right: 60px;
}
.marketing-timeline::before {
    left: auto;
    right: 20px;
}
.timeline-icon {
    left: auto;
    right: 0;
}
.timeline-content h4, .timeline-content p {
    text-align: right;
}

/* Forms */
.form-group-consent, .interest-checkbox-item, .session-checkbox-item, .consent-radio-item {
  gap: 0 0.75rem;
}
#speaker-registration-form-section legend {
    margin-left: auto;
    margin-right: -0.5rem;
}
.file-upload-btn i {
    margin-right: 0;
    margin-left: 0.5rem;
}


/* Agenda */
.agenda-timeline {
    border-left: none;
    border-right: 3px solid var(--border-color);
    padding-left: 0;
    padding-right: 2rem;
}
.timeline-block::before {
    left: auto;
    right: -2rem;
    transform: translateX(50%);
}
.timeline-time h3 { text-align: right; }
.session-card {
    border-left: none;
    border-right: 5px solid #ccc;
    gap: 0 1.5rem;
}
.session-tag {
    right: auto;
    left: -35px;
    transform: rotate(-45deg);
}

/* Footer */
.footer-contact-info li, .social-links {
    gap: 0 1rem;
}

/* WhatsApp FAB */
.whatsapp-fab {
    right: auto;
    left: 25px;
}

/* Mascot Positioning */
html[lang="ar"] .benefits-mascot {
    right: auto;
    left: 6%;
    transform: scaleX(-1);
}
.hero-mascot { right: auto; left: 6%; transform: scaleX(-1); }
.testimonials-mascot { right: auto; left: 0; }
.exhibit-mascot { right: auto; left: 9%; }
.why-attend-mascot { left: auto; right: 0; transform: scaleX(-1); }
.footer-mascot { right: auto; left: -150px; transform: scaleX(-1); }
.student-reg-mascot, .booth-reg-mascot, .sponsorship-reg-mascot, .school-group-reg-mascot, .speaker-reg-mascot {
    right: auto;
    left: 5%;
}
.card-top-mascot { left: 40%; }
.exhibit-footer-mascot { left: auto; right: -110px; }
.hackathon-intro-mascot { right: auto; left: -220px; }
.sponsorship-intro-mascot, .tier-mascot, .booth-features-mascot { left: 50%; }
.brand-exposure-mascot { left: 30%; }
.pre-event-mascot { left: auto; right: 70px; }
.contact-quick-chat-mascot { left: 50%; }
.contact-faq-mascot { left: auto; right: 1%; transform: translateX(50%); }

#exhibitor-benefits .benefits-grid {
    margin-top: 80px;
}

@media (max-width: 1200px) {
    html[lang="ar"] .benefits-mascot {
        left: 0px;
        width: 180px;
        top: 50px;
        transform: scaleX(-1); /* Ensure flip is maintained */
    }
}

@media (max-width: 992px) {
    .logo {
        margin-right: 0;
    }
    .nav-toggle {
        order: -1;
    }
    .hero-mascot,
    .testimonials-mascot,
    .exhibit-mascot,
    .why-attend-mascot,
    .footer-mascot,
    .visa-mascot,
    .agenda-mascot,
    .student-reg-mascot,
    .booth-reg-mascot,
    .sponsorship-reg-mascot,
    .school-group-reg-mascot,
    .exhibit-footer-mascot,
    .booth-features-mascot,
    .tier-mascot,
    .brand-exposure-mascot,
    .pre-event-mascot,
    .contact-quick-chat-mascot,
    .contact-faq-mascot,
    .speaker-reg-mascot,
    .benefits-mascot {
        display: none;
    }
}

/* Desktop Header Button Positioning Fix for RTL */
@media (min-width: 1201px) {
    .main-header .container {
        max-width: 1800px;
    }
}

/* =================================================== */
/* == RTL STYLES FOR CAREER COUNSELLING PAGE         == */
/* =================================================== */

.feature-text h4 {
    text-align: right;
}

.counselor-card-v2 .speaker-info,
.counselor-card-v2 .speaker-info h4 {
    text-align: right;
}

@media (max-width: 992px) {
    .counselling-hero-v2 .hero-text,
    .counselling-hero-v2 .hero-text h1 { 
        text-align: center; 
    }
    .counselling-hero-v2 .cta-group { 
        justify-content: center; 
    }
}

@media (max-width: 576px) {
    .counselor-card-v2 .speaker-info,
    .counselor-card-v2 .speaker-info h4 {
        text-align: center;
    }
}


/* --- RTL BLOG STYLES --- */
.article-card__content h3 {
    text-align: right;
}

.article-card__read-more {
    align-self: flex-end;
}

.blog-post-content h2 {
    text-align: right;
}

.blog-post-content ul {
    padding-left: 0;
    padding-right: 1rem;
}


/* RTL Adjustments for Blog Post Enhancements */
.read-progress-bar {
    left: auto;
    right: 0;
}

.social-share-sticky {
    float: right;
    margin-left: 0;
    margin-right: -120px;
}

.key-takeaway {
    border-left: none;
    border-right: 5px solid #711fb8;
    border-radius: 8px 0 0 8px;
}
.key-takeaway h3 {
    text-align: right;
}
.key-takeaway ul {
    padding-left: 0;
    padding-right: 0; /* Resetting just in case */
}
.key-takeaway li {
    padding-left: 0;
    padding-right: 2rem;
}
.key-takeaway li::before {
    left: auto;
    right: 0;
}

.author-box {
    gap: 0 1.5rem;
}
.author-box__info h4 {
    text-align: right;
}
.author-box__social a {
    margin-right: 0;
    margin-left: 1rem;
}
