/* ==========================================================================
   ICPM Academy LMS — Arabic RTL Stylesheet
   ========================================================================== */

html[dir="rtl"],
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
    font-family: 'IBM Plex Sans Arabic', 'Lato', sans-serif !important;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] p,
html[dir="rtl"] a,
html[dir="rtl"] span,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] li {
    font-family: 'IBM Plex Sans Arabic', 'Lato', sans-serif;
}

/* Preserve FontAwesome icon font family */
html[dir="rtl"] .fa,
html[dir="rtl"] .fas,
html[dir="rtl"] .far,
html[dir="rtl"] .fab,
html[dir="rtl"] .fa-solid,
html[dir="rtl"] .fa-regular,
html[dir="rtl"] .fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
}

/* Top announcement bar close button on left in RTL */
html[dir="rtl"] .advertisement_bar .close-banner {
    left: 16px !important;
    right: auto !important;
}

/* Header & Navbar RTL adjustments */
html[dir="rtl"] .cart-count,
html[dir="rtl"] .site-menu .cart-count {
    left: -8px !important;
    right: auto !important;
}

html[dir="rtl"] .explore-mega-menu .dropdown-menu {
    right: 0 !important;
    left: auto !important;
    text-align: right;
}

html[dir="rtl"] .explore-mega-menu .dropdown-item .fa-chevron-right {
    transform: scaleX(-1);
}

/* ==========================================================================
   Mirrored Hero & Corporate Banner Backgrounds for RTL
   Moves the dark forest-teal negative space to the RIGHT behind Arabic text
   while showcasing the architecture / executives on the LEFT!
   ========================================================================== */
html[dir="rtl"] .hero-slider,
html[dir="rtl"] .hero-section.plans {
    position: relative;
    overflow: hidden;
    background-image: none !important;
    isolation: isolate;
}

html[dir="rtl"] .hero-slider::before,
html[dir="rtl"] .hero-section.plans::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scaleX(-1);
    pointer-events: none;
}

html[dir="rtl"] .hero-slider.slide-1::before {
    background-image: url('images/hero-slide-1.jpg');
    background-position: center;
}

html[dir="rtl"] .hero-slider.slide-2::before {
    background-image: url('images/hero-slide-2.jpg');
    background-position: center;
}

html[dir="rtl"] .hero-section.plans::before {
    background-image: url('images/corporate-training-banner.jpg');
    background-position: center 22%;
}

/* Subtle right-side gradient scrim for ultra-crisp Arabic headline contrast */
html[dir="rtl"] .hero-slider::after,
html[dir="rtl"] .hero-section.plans::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(270deg, rgba(7, 29, 32, 0.86) 0%, rgba(11, 37, 40, 0.52) 44%, rgba(9, 33, 36, 0.08) 72%, transparent 100%);
    pointer-events: none;
}

html[dir="rtl"] .hero-slider > *,
html[dir="rtl"] .hero-section.plans > * {
    position: relative;
    z-index: 2;
}

/* Hero headings & stats alignment */
html[dir="rtl"] .hero-section h1,
html[dir="rtl"] .hero-section p,
html[dir="rtl"] .hero-details {
    text-align: right;
}

html[dir="rtl"] .hero-slider .numbers .number-info .d-flex {
    direction: ltr; /* Keep + 77,200 formatted cleanly */
}

/* Blog cards & arrows flipped for RTL */
html[dir="rtl"] .blogs .all-blogs img,
html[dir="rtl"] .blog-card a img[src*="linear-arrow-right"] {
    transform: scaleX(-1);
}

html[dir="rtl"] .blog-card .card-body {
    text-align: right;
}

html[dir="rtl"] .blog-card .category-name {
    right: 20px;
    left: auto;
}

/* Testimonials RTL nav arrows */
html[dir="rtl"] .feedback-slider .owl-carousel .owl-nav .owl-prev {
    right: 45px !important;
    left: auto !important;
}

html[dir="rtl"] .feedback-slider .owl-carousel .owl-nav .owl-next {
    right: 115px !important;
    left: auto !important;
}

html[dir="rtl"] .feedback-slider .owl-carousel .owl-nav i {
    transform: scaleX(-1);
}

html[dir="rtl"] .feedback-slider .card {
    text-align: right;
}

/* Newsletter RTL gradient & alignment */
html[dir="rtl"] .newsletter {
    background: linear-gradient(to right, #e2ebe5, #edf2ee, #f7f9f6) !important;
    text-align: right;
}

/* Footer RTL alignment & list chevron flip */
html[dir="rtl"] footer {
    text-align: right;
}

html[dir="rtl"] footer .widget ul li a::before,
html[dir="rtl"] footer .fa-chevron-right,
html[dir="rtl"] footer .fa-angle-right {
    transform: scaleX(-1);
}

/* Back-to-top button on right in RTL */
html[dir="rtl"] .back-to-top {
    right: 20px !important;
    left: auto !important;
}

/* Keep LTR icons/numbers inside payment strip neat */
html[dir="rtl"] .icpm-pay-badges {
    direction: ltr;
}

/* Arabic typography must never use negative letter-spacing or uppercase transform */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] .font-bold,
html[dir="rtl"] .boldfont,
html[dir="rtl"] .font-regular,
html[dir="rtl"] .font-light,
html[dir="rtl"] .icpm-eyebrow {
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* RTL hover nudge on flipped arrows */
html[dir="rtl"] .blogs .all-blogs:hover img,
html[dir="rtl"] .blog-card a:hover img[src*="linear-arrow-right"] {
    transform: scaleX(-1) translateX(4px);
}

/* Floating G2 Cookie Card anchored bottom-left in RTL */
html[dir="rtl"] .js-cookie-consent.cookie-consent {
    left: 22px !important;
    right: auto !important;
    text-align: right !important;
}

