/* RTL + Arabic font overrides for Finazze template */

body, p, a, span, li, button, input, textarea, select, label, .vl-btn1, .vl-btn2 {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', system-ui, -apple-system, sans-serif !important;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Tajawal', 'IBM Plex Sans Arabic', system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.35 !important;
}
h1 { font-weight: 900 !important; line-height: 1.25 !important; letter-spacing: -0.02em !important; }
h5 { font-weight: 500 !important; letter-spacing: 0 !important; }
p { font-weight: 400 !important; line-height: 1.9 !important; }

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

/* Site-wide background: uniform light bluish-gray (matches hero backdrop) */
html, body {
  background-color: #ECF1F6 !important;
  background-image: none !important;
}

/* Flip directional arrow icons (fa-arrow-right etc.) */
html[dir="rtl"] .fa-arrow-right,
html[dir="rtl"] .fa-long-arrow-alt-right,
html[dir="rtl"] .fa-chevron-right,
html[dir="rtl"] .fa-angle-right,
html[dir="rtl"] .vl-btn1 i,
html[dir="rtl"] .vl-btn2 i,
html[dir="rtl"] .arrow-icon img,
html[dir="rtl"] .btn-arrow img {
  transform: scaleX(-1);
  display: inline-block;
}

/* Common list resets (bullets kept on right by default) */
html[dir="rtl"] ul { padding-right: 0; }

/* Fix floats that may have been hardcoded */
html[dir="rtl"] .float-start { float: right !important; }
html[dir="rtl"] .float-end { float: left !important; }

/* Text alignment helpers used in template */
html[dir="rtl"] .text-start { text-align: right !important; }
html[dir="rtl"] .text-end { text-align: left !important; }

/* Navbar spacing */
html[dir="rtl"] .navbar-nav .nav-item { margin-left: 0; margin-right: 0; }
html[dir="rtl"] .header-right, html[dir="rtl"] .header-left { direction: rtl; }

/* Ensure headings breathe with Arabic diacritics */
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { line-height: 1.5; }
html[dir="rtl"] p { line-height: 1.9; }

/* Cards / feature blocks that used margin-left as a decorative gap */
html[dir="rtl"] [class*="ms-"] { margin-right: revert; }
html[dir="rtl"] [class*="me-"] { margin-left: revert; }

/* Breadcrumb separator flip */
html[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
  transform: scaleX(-1);
  display: inline-block;
}

/* Keep numeric-heavy blocks LTR for readability (prices, counters, phone) */
.ltr-num, .odometer, .price-text, .counter, .phone {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

/* Preloader / loading text keep centered */
html[dir="rtl"] .preloader { direction: rtl; }

/* Contact form inputs align right */
html[dir="rtl"] input, html[dir="rtl"] textarea, html[dir="rtl"] select { text-align: right; }

/* Slick / Swiper arrows visual flip */
html[dir="rtl"] .slick-prev, html[dir="rtl"] .swiper-button-prev { transform: scaleX(-1); }
html[dir="rtl"] .slick-next, html[dir="rtl"] .swiper-button-next { transform: scaleX(-1); }

/* Neutralize character-split animation (breaks Arabic ligatures) */
.text-anime-style-1, .text-anime-style-2, .text-anime-style-3,
.text-anime-style-4, .text-anime-style-5 {
  opacity: 1 !important;
  visibility: visible !important;
}
.text-anime-style-1 .word, .text-anime-style-2 .word, .text-anime-style-3 .word,
.text-anime-style-4 .word, .text-anime-style-5 .word,
.text-anime-style-1 .char, .text-anime-style-2 .char, .text-anime-style-3 .char,
.text-anime-style-4 .char, .text-anime-style-5 .char {
  display: inline !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Disable preloader completely (was blocking view) */
.preloader { display: none !important; }
/* legacy */
.preloader { transition: opacity .4s; }
.preloader.loaded, body.loaded .preloader { opacity: 0; pointer-events: none; visibility: hidden; }

/* ===== Hero1 image area position fixes for RTL ===== */
html[dir="rtl"] .hero1-section-area .hero-images-area { left: auto; right: 100px; }
@media (max-width: 991px) {
  html[dir="rtl"] .hero1-section-area .hero-images-area { right: 0; }
}
html[dir="rtl"] .hero1-section-area .hero-images-area .elements1 { left: auto; right: -50px; }
html[dir="rtl"] .hero1-section-area .hero-images-area .elements2 { right: auto; left: 0; }
html[dir="rtl"] .hero1-section-area .hero-images-area .elements3 { left: auto; right: -50px; }
html[dir="rtl"] .hero1-section-area .hero-images-area .elements4 { right: auto; left: -100px; }
.hero1-section-area .hero-images-area .elements4 { bottom: auto !important; top: 50% !important; animation: float-elem4 3.5s ease-in-out infinite !important; }
@keyframes float-elem4 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
.hero1-section-area .hero-images-area .elements5 { bottom: auto !important; top: 60px !important; transform-origin: center center; filter: brightness(0) saturate(100%) invert(70%) sepia(95%) saturate(900%) hue-rotate(2deg) brightness(85%) contrast(110%) !important; }

/* Flip decorative arrow element in hero1 */
html[dir="rtl"] .hero1-section-area .hero-images-area .elements1 { transform: scaleX(-1); }

/* Flip hero1 main person image for RTL */
html[dir="rtl"] .hero1-section-area .hero-images-area .img1 img { transform: scaleX(-1); }

/* Flip main person/hero images across all hero variants for RTL
   (About sections intentionally NOT flipped — they contain charts/text that
   must stay readable.) */
html[dir="rtl"] .hero2-section-area .hero-images-area .img1 img,
html[dir="rtl"] .hero3-section-area .hero-images-area .img1 img,
html[dir="rtl"] .hero4-section-area .hero-images-area .img1 img,
html[dir="rtl"] .hero5-section-area .hero-images-area .img1 img {
  transform: scaleX(-1);
  transform-origin: center center;
}

/* ===== About1 section RTL fixes ===== */
/* Anchor decorative chart at the bottom, protruding well past the right edge */
html[dir="rtl"] .about1-section-area .about-images-area,
html[dir="rtl"] .aboutinner-section-area .about-images-area {
  overflow: visible;
}
html[dir="rtl"] .about1-section-area .about-images-area .elements6,
html[dir="rtl"] .aboutinner-section-area .about-images-area .elements6 {
  left: auto;
  right: -170px;
  bottom: -20px;
  top: auto;
  width: 320px;
  max-width: 320px;
  height: auto;
  z-index: 3;
}
@media (max-width: 1199px) {
  html[dir="rtl"] .about1-section-area .about-images-area .elements6 {
    right: -100px;
    width: 260px;
    max-width: 260px;
  }
}
@media (max-width: 991px) {
  html[dir="rtl"] .about1-section-area .about-images-area .elements6 {
    right: 0;
    width: 200px;
    max-width: 200px;
  }
}
/* Slightly smaller heading in Arabic to keep it on 2 lines */
html[dir="rtl"] .about1-section-area .about-heading h2 {
  font-size: clamp(28px, 3.2vw, 44px) !important;
  line-height: 1.35 !important;
}
/* Flip the icon inside pera-box to the right side */
html[dir="rtl"] .about1-section-area .about-heading .pera-box .icons,
html[dir="rtl"] .aboutinner-section-area .about-heading .pera-box .icons {
  left: auto;
  right: 20px;
}
/* Reserve space for the icon on the right side (was padding-left in LTR) */
html[dir="rtl"] .about1-section-area .about-heading .pera-box .text,
html[dir="rtl"] .aboutinner-section-area .about-heading .pera-box .text {
  padding-left: 0;
  padding-right: 80px;
}
/* Make the feature card stretch the full width of the text column */
html[dir="rtl"] .about1-section-area .about-heading .pera-box {
  width: 100%;
  max-width: none;
}
/* Add breathing room between image column and text column in RTL */
html[dir="rtl"] .about1-section-area .about-images-area {
  padding: 0 0 0 50px;
}
@media (max-width: 991px) {
  html[dir="rtl"] .about1-section-area .about-images-area { padding: 0; }
}

/* ===== Project1 section: keep original LTR visual order =====
   Card on the left, numbered column in the middle, image on the right,
   with the chart hanging bottom-right outside the image — as in the
   original design. We only flip the row order; content stays RTL so the
   slider/JS keeps working. */
html[dir="rtl"] .project1-section .row.align-items-center {
  direction: ltr;
}
html[dir="rtl"] .project1-section .row.align-items-center > [class*="col-"] {
  direction: rtl;
}
html[dir="rtl"] .project1-section .all-images .images-area {
  overflow: visible;
}
/* Keep the floating chart/card in the original design spot */
html[dir="rtl"] .project1-section .all-images .images-area .elements7 {
  right: -60px;
  left: auto;
  bottom: 30px;
  width: auto;
  max-width: none;
  height: auto;
}

/* Partners strip above hero */
.partners-strip-area {
  padding: 28px 0 8px;
  background: transparent;
}
.partners-strip-area .partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.partners-strip-area .partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}
.partners-strip-area .partner-logo img {
  max-height: 80px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: none;
  opacity: .95;
  transition: opacity .3s ease, transform .3s ease;
}
.partners-strip-area .partner-logo img:hover {
  opacity: 1;
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .partners-strip-area .partners-logos { gap: 32px; }
  .partners-strip-area .partner-logo,
  .partners-strip-area .partner-logo img { height: 56px; max-height: 56px; }
}

/* Inline partners row above hero heading */
.partners-inline {
  justify-content: flex-start !important;
  gap: 28px !important;
  margin-bottom: 8px;
}
.partners-inline .partner-logo,
.partners-inline .partner-logo img {
  height: 52px !important;
  max-height: 52px !important;
  max-width: 150px !important;
}

/* Force partners inline row on one line */
.partners-inline {
  flex-wrap: nowrap !important;
  gap: 18px !important;
}
.partners-inline .partner-logo {
  flex: 0 1 auto;
  min-width: 0;
}
.partners-inline .partner-logo img {
  height: 44px !important;
  max-height: 44px !important;
  max-width: 120px !important;
  width: auto !important;
}

/* Remove empty space above hero (no header now) */
.hero1-section-area {
  padding-top: 22px !important;
  margin: 16px clamp(12px, 2.5vw, 32px) !important;
  border-radius: clamp(18px, 2.5vw, 36px) !important;
  overflow: hidden !important;
}
/* City texture layer blended over the whole hero (multiply) */
.hero-city-mask {
  position: absolute;
  inset: 0;
  height: 100%;
  background-image: url("/__l5e/assets-v1/10a8f0ca-16b9-418d-b200-03d8e8c14a84/hero-mask-city-v2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}
.hero1-section-area > .container { position: relative; z-index: 1; }
/* Compact hero: smaller vertical rhythm and person image */
.hero1-section-area .space20 { height: 10px; }
.hero1-section-area .hero-images-area .img1 img {
  height: auto;
  max-height: clamp(420px, 44vw, 620px);
  object-fit: contain;
  object-position: bottom;
}
@media (max-width: 576px) {
  .hero1-section-area {
    margin: 10px !important;
    border-radius: 18px !important;
  }
}
/* Phone: dedicated portrait city masks, matched to each viewport width */
@media (max-width: 390px) {
  .hero-city-mask {
    background-image: url("/__l5e/assets-v1/338193dc-0453-48f9-8f51-181a56b15386/saudi-background-390x1833.png");
    background-size: 100% 100%;
    background-position: center bottom;
    opacity: 0.9;
  }
}

@media (min-width: 391px) and (max-width: 576px) {
  .hero-city-mask {
    background-image: url("/__l5e/assets-v1/d5871e5e-f937-424b-a6e8-3be22b4abab8/saudi-background-576x2062.png");
    background-size: 100% 100%;
    background-position: center bottom;
    opacity: 0.9;
  }
}

@media (min-width: 577px) and (max-width: 991.98px) {
  .hero-city-mask {
    background-image: url("/__l5e/assets-v1/21bc8ee4-5b0f-480a-afb1-5280bfd06a6b/saudi-background-768x1292.png");
    background-size: 100% 100%;
    background-position: center bottom;
    opacity: 0.9;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-city-mask {
    background-size: 130% auto;
    background-position: bottom center;
  }
}

/* Service section: same rounded edges as hero */
.service1-section-area {
  margin: 0 clamp(12px, 2.5vw, 32px) !important;
  border-radius: clamp(18px, 2.5vw, 36px) !important;
  overflow: hidden !important;
}
@media (max-width: 576px) {
  .service1-section-area {
    margin: 0 10px !important;
    border-radius: 18px !important;
  }
}
body { padding-top: 0 !important; margin-top: 0 !important; }

/* Hero title as image, centered */
.hero-title-img { display: block !important; width: 100% !important; margin: 0 !important; line-height: 1 !important; text-align: center !important; }
.hero-title-img img {
  height: clamp(38px, 4.4vw, 64px);
  width: auto !important;
  max-width: 100% !important;
  margin-inline: auto;
}
/* Keep Bootstrap visibility helpers intact despite the block rule above */
.hero-title-img img.d-none { display: none !important; }
@media (min-width: 768px) {
  .hero-title-img img.d-md-inline-block { display: inline-block !important; }
}
/* Stacked mobile wordmark: size by width instead of height */
@media (max-width: 767.98px) {
  .hero-title-img img.d-md-none {
    height: auto !important;
    width: min(78%, 340px) !important;
    display: block !important;
  }
}

/* Lift hero text content up */
.hero1-section-area .heading-area { margin-top: -64px; }
@media (min-width: 992px) {
  .hero1-section-area .heading-area .hero-courses-compact { margin-top: 18px; }
}
@media (max-width: 991px) { .hero1-section-area .heading-area { margin-top: -20px; } }

/* Hero description elegant word-by-word reveal */
.hero-desc-reveal {
  position: relative;
  overflow: visible;
  font-size: clamp(14px, 1.05vw, 17px) !important;
  line-height: 1.9 !important;
  font-weight: 500;
  max-width: 620px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(56,189,248,0.08) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  background-position: 200% 0;
  padding: 6px 0;
  animation: heroDescShimmer 6s ease-in-out 1.8s infinite;
}
@media (max-width: 991px) {
  .hero-desc-reveal { max-width: 100%; font-size: 15px !important; }
}
.hero-desc-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px) rotateX(-30deg);
  transform-origin: 50% 100%;
  filter: blur(6px);
  animation: heroWordIn 0.7s cubic-bezier(.2,.7,.2,1) forwards;
  margin-inline-end: 0.28em;
  will-change: transform, opacity, filter;
}
.hero-desc-reveal .word.accent {
  background: linear-gradient(120deg, #38bdf8, #a78bfa 55%, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
@keyframes heroWordIn {
  0%   { opacity: 0; transform: translateY(14px) rotateX(-30deg); filter: blur(6px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) rotateX(0);        filter: blur(0); }
}
@keyframes heroDescShimmer {
  0%,100% { background-position: 200% 0; }
  50%     { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-desc-reveal .word { opacity: 1; transform: none; filter: none; animation: none; }
  .hero-desc-reveal { animation: none; }
}



/* Mobile-only hero figure */
.hero-mobile-figure {
  display: none;
}

@media (max-width: 991px) {
  .hero-mobile-figure {
    display: block;
    position: relative;
    margin: 8px auto 24px;
    width: 100%;
    max-width: 420px;
    z-index: 2;
  }
  .hero-mobile-figure .hero-images-area {
    position: relative;
    left: auto !important;
    right: auto !important;
    width: 100%;
    height: auto;
  }
  .hero-mobile-figure .hero-images-area .img1 img {
    width: 100%;
    height: auto;
    display: block;
  }
  .hero-mobile-figure .hero-images-area .elements2,
  .hero-mobile-figure .hero-images-area .elements3,
  .hero-mobile-figure .hero-images-area .elements4 { display: block !important; }
  .hero-mobile-figure .hero-images-area .elements5 {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: 45% !important;
    bottom: auto !important;
    width: 82% !important;
    max-width: 340px !important;
    height: auto !important;
    z-index: -1 !important;
    opacity: .55;
    margin-left: -41%;
    margin-top: -41%;
  }
  .hero-mobile-figure .hero-images-area .elements1 { display: none !important; }
  .hero-mobile-figure .hero-images-area .elements2 { left: 6px !important; right: auto !important; top: 8% !important; max-width: 130px; width: 34%; height: auto; }
  .hero-mobile-figure .hero-images-area .elements4 { right: 6px !important; left: auto !important; top: 38% !important; bottom: auto !important; max-width: 140px; width: 36%; height: auto; }
  .hero-mobile-figure .hero-images-area .elements3 { right: 6px !important; left: auto !important; top: auto !important; bottom: 35% !important; max-width: 150px; width: 40%; height: auto; }
  .hero-mobile-figure .hero-images-area .elements4 { right: 6px !important; left: auto !important; top: 28% !important; bottom: auto !important; max-width: 140px; width: 36%; height: auto; }
  .hero1-section-area .col-lg-6:last-child { display: none; }
  .hero-desc-reveal .hero-desc-rest { display: none; }
  .hero-desc-reveal.is-expanded .hero-desc-rest { display: inline; }
  .hero-desc-toggle {
    display: inline-block;
    background: none;
    border: none;
    padding: 0 4px;
    margin-inline-start: 4px;
    color: #d4a017;
    font-weight: 700;
    font-size: inherit;
    cursor: pointer;
  }
  .hero-desc-toggle:hover { text-decoration: underline; }
}
/* desktop: hide toggle, show full text */
@media (min-width: 992px) {
  .hero-desc-toggle { display: none; }
  .hero-desc-reveal .hero-desc-rest { display: inline; }
}


.hero-partners-tr-wrap {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  display: inline-block;
  overflow: hidden;
  pointer-events: none;
  line-height: 0;
}
.hero-partners-tr {
  display: block;
  height: clamp(60px, 6.8vw, 104px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.hero-partners-shine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 35%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0) 70%, transparent 100%);
  transform: skewX(-18deg);
  animation: heroPartnersShine 3.8s ease-in-out 1.2s infinite;
  mix-blend-mode: screen;
}
@keyframes heroPartnersShine {
  0%   { left: -40%; opacity: 0; }
  15%  { opacity: 1; }
  60%  { left: 120%; opacity: 1; }
  100% { left: 120%; opacity: 0; }
}
@media (max-width: 991px) {
  .hero-partners-tr-wrap {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    display: block;
    width: 100%;
    text-align: center;
    padding: 0;
  }
  .hero-partners-tr {
    height: auto;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }
}
@media (max-width: 576px) {
  .hero-partners-tr { max-width: 200px; }
}
/* Push hero heading down so it sits below the partners strip */
.hero1-section-area .heading-area { margin-top: -30px !important; padding-top: 152px; }
@media (max-width: 991px) {
  .hero1-section-area .heading-area { margin-top: 0 !important; padding-top: 120px !important; }
}
@media (max-width: 576px) {
  .hero1-section-area .heading-area { padding-top: 86px !important; }
}


/* ===== Mobile: blend hero person with audience card ===== */
@media (max-width: 991px) {
  /* Order: title/byline -> mobile figure -> course cards */
  .hero1-section-area .heading-area { display: flex; flex-direction: column; }
  .hero1-section-area .heading-area .hero-mobile-figure {
    order: 1;
    width: min(100%, 330px);
    margin: 4px auto -12px !important;
  }
  .hero1-section-area .heading-area .hero-courses-compact {
    order: 2;
    width: min(100%, 700px);
    margin-top: 20px;
  }
  /* Soft fade at bottom of the person so it doesn't look cut */
  .hero-mobile-figure {
    -webkit-mask-image: linear-gradient(180deg, #000 78%, rgba(0,0,0,0.15) 96%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 78%, rgba(0,0,0,0.15) 96%, transparent 100%);
  }
}
@media (max-width: 576px) {
  .hero1-section-area .heading-area { padding-inline: 4px; }
  .hero1-section-area .heading-area .hero-mobile-figure {
    width: min(92%, 290px);
    margin: 2px auto -10px !important;
  }
  .hero1-section-area .heading-area .hero-courses-compact { margin-top: 14px; }
}

@keyframes badgeShine {
  0%   { left: -40%; opacity: 0; }
  15%  { opacity: 1; }
  60%  { left: 110%; opacity: 1; }
  100% { left: 110%; opacity: 0; }
}


/* ===== About3 section RTL fixes ===== */
html[dir="rtl"] .about3-section-area .about-images-area .elements18 {
  left: auto;
  right: 60px;
  top: 20px;
  transform: scaleX(-1);
  z-index: 3;
}
html[dir="rtl"] .about3-section-area .about-images-area .img1 {
  text-align: start;
}
html[dir="rtl"] .about3-section-area .about-images-area .img2 {
  left: auto;
  right: 60px;
}
html[dir="rtl"] .about3-section-area .heading3 {
  padding: 0 50px 0 0;
}
@media (max-width: 991px) {
html[dir="rtl"] .about3-section-area .heading3 { padding: 0; }
}

/* ===== About4 section RTL fixes ===== */
html[dir="rtl"] .about4-section-area .about-heading { padding: 0 0 0 0; }
@media (max-width: 991px) {
  html[dir="rtl"] .about4-section-area .about-heading { padding: 0; }
}
html[dir="rtl"] .about4-section-area .about-images .elements33 { right: auto; left: -30px; }
html[dir="rtl"] .about4-section-area .about-images .elements34 { left: auto !important; right: auto !important; top: 8% !important; bottom: auto !important; inset-inline-end: -20px !important; }
html[dir="rtl"] .about4-section-area .about-images .elements35 { right: auto !important; left: auto !important; top: auto !important; bottom: 38% !important; inset-inline-start: -10px !important; }
html[dir="rtl"] .about4-section-area .about-boxarea .icons { right: 24px; left: auto; }
html[dir="rtl"] .about4-section-area .about-boxarea .text { padding-left: 0; padding-right: 100px; }
@media (max-width: 991px) {
  html[dir="rtl"] .about4-section-area .about-boxarea .text { padding-right: 0; }
}
@media (max-width: 991px) {
  .about4-section-area { overflow-x: hidden; padding-bottom: 120px !important; margin-bottom: 20px; }
  .about4-section-area .container { padding-left: 0 !important; padding-right: 0 !important; max-width: 100% !important; }
  .about4-section-area .container > .row { margin-left: 0 !important; margin-right: 0 !important; }
  .about4-section-area .col-lg-5, .about4-section-area .col-lg-6 { padding-left: 0 !important; padding-right: 0 !important; }
  .about4-section-area .about-images { position: relative; overflow: visible; border-radius: 0; margin: 0; }
  .about4-section-area .about-images .elements33,
  .about4-section-area .about-images .elements34,
  .about4-section-area .about-images .elements35 { display: none !important; }
  .about4-section-area .about-images .img1 { margin: 0 !important; }
  .about4-section-area .about-images .img1 img { width: 100% !important; max-width: 100% !important; height: auto; border-radius: 0 !important; margin: 0 !important; display: block; }
  .about4-section-area .about-heading { text-align: center; margin-top: -40px !important; position: relative; z-index: 3; padding: 0 16px !important; }
  .about4-section-area .about-heading h5 { font-size: 22px !important; padding: 8px 22px !important; display: inline-block; }
  .about4-section-area .about-heading > div[style*="padding"] { margin-top: -20px !important; position: relative; z-index: 2; }
  html[dir="rtl"] .about4-section-area .about-boxarea .icons { position: relative !important; right: auto; left: auto; margin-bottom: 16px; }
  html[dir="rtl"] .about4-section-area .about-boxarea .text { padding-right: 0 !important; padding-left: 0 !important; }
  .about4-section-area .about-heading p { padding: 18px 16px !important; font-size: 16px !important; line-height: 1.9 !important; }
}
html[dir="rtl"] .about3-section-area .heading3 ul { padding-right: 0; list-style: none; }
html[dir="rtl"] .about3-section-area .heading3 ul li img {
  margin: 0 0 0 6px;
}


/* About4 card hover color */
.about4-section-area .about-boxarea { cursor: pointer; transition: all .4s; }
.about4-section-area .about-boxarea:hover { border-color: #4f46e5; background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(79,70,229,0.02)); }
.about4-section-area .about-boxarea:hover span { color: #4f46e5 !important; }
.about4-section-area .about-boxarea:hover .icons { background: #4f46e5 !important; }
.about4-section-area .about-boxarea:hover .icons img { filter: brightness(0) invert(1); }

/* About4 mobile text sizing */
@media (max-width: 767px) {
  .about4-section-area .about-heading > div > p { font-size: 14px !important; line-height: 1.9 !important; }
  .about4-section-area .about-heading > div[style*="padding: 32px"] { padding: 20px !important; border-radius: 14px !important; }
  .about4-section-area .about-heading h3 { font-size: 20px !important; }
  .about4-section-area .about-heading h5 { font-size: 22px !important; padding: 8px 18px !important; }
  .about4-section-area .about-boxarea span { font-size: 14px !important; }
}

/* About4 image: transparent bg + extend to section bottom (desktop only) */
@media (min-width: 992px) {
  .about4-section-area { padding-bottom: 0 !important; overflow: hidden; }
  .about4-section-area .container,
  .about4-section-area .container > .row { padding-bottom: 0 !important; margin-bottom: 0 !important; }
  .about4-section-area .row { align-items: flex-start !important; }
  .about4-section-area .col-lg-5 { padding-bottom: 0 !important; align-self: flex-end; }
}
.about4-section-area .col-lg-6 { align-self: flex-start; padding-top: 0 !important; }
.about4-section-area .about-images { position: relative; }
.about4-section-area .about-images .img1,
.about4-section-area .about-images .img1 img {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.about4-section-area .about-images .img1 { margin-bottom: 0 !important; display: block; }
.about4-section-area .about-images .img1 img { display: block; width: 135%; max-width: none; height: auto; margin-bottom: -1px; margin-right: -20%; }
@media (max-width: 991px) {
  .about4-section-area .about-images .img1 img { width: 100%; margin-right: 0; }
}
.about4-section-area .about-images .img1::after,
.about4-section-area .about-images .img1::before { display: none !important; }


/* ===== Work Process (third section) ===== */
.work-process-area .wp-chip {
  display: inline-block;
  padding: 8px 18px;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.work-process-area h2 { color: #0f1a3a; }
.work-process-area .wp-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  padding: 20px 0 10px;
}
.work-process-area .wp-step {
  flex: 1 1 0;
  max-width: 320px;
  text-align: center;
  padding: 0 8px;
}
.work-process-area .wp-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 10px 30px -10px rgba(79,70,229,0.5);
}
.work-process-area .wp-icon::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 2px dashed #4f46e5;
  border-radius: 50%;
  opacity: 0.55;
}
.work-process-area .wp-icon img {
  width: 44px;
  height: 44px;
  filter: brightness(0) invert(1);
}
.work-process-area .wp-step h4 {
  font-size: 20px;
  font-weight: 700;
  color: #0f1a3a;
  margin: 0 0 12px;
}
.work-process-area .wp-step p {
  font-size: 15px;
  line-height: 1.9;
  color: #4b5563;
  margin: 0;
}
.work-process-area .wp-arrow {
  flex: 0 0 140px;
  margin-top: 40px;
  display: block;
}
.work-process-area .wp-arrow svg { width: 100%; height: auto; }
/* RTL: flip arrow so it points from right to left visually */
html[dir="rtl"] .work-process-area .wp-arrow svg { transform: scaleX(-1); }

@media (max-width: 991px) {
  .work-process-area .wp-steps { flex-wrap: wrap; }
  .work-process-area .wp-step { flex: 1 1 100%; max-width: 480px; margin: 0 auto; }
  .work-process-area .wp-arrow {
    flex: 0 0 100%;
    margin: 4px auto 8px;
    max-width: 120px;
    transform: rotate(90deg);
  }
  html[dir="rtl"] .work-process-area .wp-arrow svg { transform: none; }
}

/* ===== Work section (third): rounded bg + RTL arrows ===== */
.work-section-area {
  margin: 0 clamp(12px, 2.5vw, 32px) !important;
  border-radius: clamp(18px, 2.5vw, 36px) !important;
  overflow: hidden !important;
}
@media (max-width: 576px) {
  .work-section-area { margin: 0 10px !important; border-radius: 18px !important; }
}
/* Flip connector arrows for RTL so they point from card N (right) to card N+1 (left) */
html[dir="rtl"] .work-section-area .work-single-boxarea .elements12,
html[dir="rtl"] .work-section-area .work-single-boxarea .elements13 {
  right: auto !important;
  left: -115px !important;
  transform: scaleX(-1);
}


/* Step badge above title */
.work-section-area .conten-area .step-badge {
  display: inline-block;
  padding: 4px 14px;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.work-section-area .space8 { height: 8px; }

/* ===== Hero feature boxes (three cards replacing hero paragraph) ===== */
.hero-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-inline: auto;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffefb 0%, #fff6e6 100%);
  border: 1px solid rgba(245, 166, 35, 0.55);
  box-shadow: 0 10px 22px -16px rgba(245, 166, 35, 0.55);
  max-width: 100%;
}
.hero-byline-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #f5a623;
  background: rgba(245, 166, 35, 0.14);
  border-radius: 50%;
  padding: 4px;
}
.hero-byline-icon svg { width: 100%; height: 100%; }
.hero-byline-text {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.5;
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .hero-byline { padding: 5px 12px; gap: 6px; margin-top: 6px; }
  .hero-byline-text { font-size: 11.5px; }
  .hero-byline-icon { width: 19px; height: 19px; }
}

/* Accreditation badge under the byline */
.hero-accred {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 0;
  padding: 7px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f6f3 100%);
  border: 1px solid rgba(15, 76, 58, 0.16);
  box-shadow: 0 14px 30px -22px rgba(15, 76, 58, 0.55);
}
.hero-accred-seal {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: #0f4c3a;
}
.hero-accred-seal svg { width: 100%; height: 100%; }
.hero-accred-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(15, 76, 58, 0.22);
}
.hero-accred-text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: #0f4c3a;
  text-align: center;
}
@media (max-width: 575.98px) {
  .hero-accred { gap: 10px; padding: 8px 14px; margin-top: 10px; border-radius: 13px; }
  .hero-accred-seal { width: 32px; height: 32px; }
  .hero-accred-text { font-size: 12px; }
}

/* ===================== Hero & About polish pass ===================== */
/* Keep floating badges fully inside the rounded hero card */
@media (min-width: 992px) {
  html[dir="rtl"] .hero1-section-area .hero-images-area { right: 40px; }
  /* Stretch the person figure so the leg reaches the hero's bottom edge. */
  .hero1-section-area .col-lg-6:last-child { align-self: stretch; display: flex; align-items: stretch; }
  .hero1-section-area .col-lg-6:last-child .hero-images-area { width: 100%; display: flex; align-items: stretch; }
  .hero1-section-area .col-lg-6:last-child .hero-images-area .img1 { flex: 1; display: flex; align-items: flex-end; }
  .hero1-section-area .col-lg-6:last-child .hero-images-area .img1 img {
    height: 100%;
    max-height: none;
    width: 100%;
    object-fit: contain;
    object-position: bottom center;
    margin-bottom: -20px;
  }
  html[dir="rtl"] .hero1-section-area .hero-images-area .elements2 { left: 12px !important; right: auto !important; max-width: 190px; }
  html[dir="rtl"] .hero1-section-area .hero-images-area .elements4 { left: 26px !important; right: auto !important; max-width: 170px; }
  html[dir="rtl"] .hero1-section-area .hero-images-area .elements3 { right: -20px !important; left: auto !important; max-width: 280px; }
  html[dir="rtl"] .hero1-section-area .hero-images-area .elements1 { right: -20px !important; }
}
.hero1-section-area .hero-images-area .elements2,
.hero1-section-area .hero-images-area .elements3,
.hero1-section-area .hero-images-area .elements4 {
  border-radius: 14px;
  filter: drop-shadow(0 16px 34px rgba(16, 2, 53, 0.14));
}

/* Softer, more premium hero surface */
.hero1-section-area {
  box-shadow: 0 30px 70px -40px rgba(16, 2, 53, 0.35) !important;
  padding-bottom: 20px !important;
}
.hero1-section-area .heading-area { position: relative; z-index: 3; }

/* Tight seam under the hero (no white band) */
.hero1-section-area { margin-bottom: 0 !important; }
.about4-section-area { padding-top: 0 !important; margin-top: -8px; }
@media (max-width: 991px) {
  .about4-section-area { padding-top: 14px !important; }
  .about4-section-area .about-images { margin-bottom: 26px; }
}

/* Unify the objectives block with the gold brand palette */
.about4-section-area .about-heading h5 {
  background: linear-gradient(135deg, #fff7e6, #ffeec9) !important;
  color: #8a5a00 !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #8a5a00 !important;
  border: 1px solid rgba(214, 158, 46, 0.35);
  border-radius: 999px;
}
.about4-section-area .about-heading > div[style*="linear-gradient"] {
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%) !important;
  box-shadow: 0 22px 50px -24px rgba(214, 158, 46, 0.35), 0 0 0 1px rgba(214, 158, 46, 0.16) !important;
}
.about4-section-area .about-heading p span[style*="4f46e5"] {
  color: #b7791f !important;
  background: linear-gradient(180deg, transparent 65%, rgba(236, 178, 46, 0.28) 65%) !important;
}
.about4-section-area .about-heading h3 span[style*="background:#4f46e5"],
.about4-section-area .about-heading h3 span {
  background: linear-gradient(180deg, #ecb22e, #d69e2e) !important;
}
.about4-section-area .about-boxarea {
  border: 1px solid rgba(16, 2, 53, 0.06) !important;
  border-radius: 14px !important;
  transition: transform .25s ease, box-shadow .25s ease;
}
.about4-section-area .about-boxarea:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -18px rgba(16, 2, 53, 0.25) !important;
}

/* ===== Mobile header + hamburger button ===== */
.em-mheader{
  position:absolute;top:0;right:0;left:0;z-index:999;
  height:0;background:transparent;border:0;pointer-events:none;
}
.em-mheader-inner{
  display:flex;align-items:center;justify-content:flex-start;
  height:0;padding:0 18px;pointer-events:none;
}
.tp-header-bar{display:inline-flex;position:absolute;top:18px;left:18px;pointer-events:auto;}
.tp-offcanvas-open-btn{
  width:30px;height:30px;border:0;border-radius:0;
  background:transparent;display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;
  gap:5px;cursor:pointer;padding:0;transition:opacity .2s;
}
.tp-offcanvas-open-btn i{
  display:block;width:25px;height:2.5px;border-radius:999px;background:#1a2332;
  transition:background .2s;
}
.tp-offcanvas-open-btn:hover{opacity:.72;}
.tp-offcanvas-open-btn:hover i{background:#1a2332;}
.tp-offcanvas-open-btn:focus-visible{outline:3px solid rgba(247,171,36,.45);outline-offset:4px;}
body.em-menu-open{overflow:hidden;}
.em-cr-link{
  display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;
  background:#FFF8EC;border:1px dashed rgba(237,148,7,.5);color:#1a2332;
  font-size:13px;font-weight:700;text-decoration:none;transition:background .2s;
}
.em-cr-link:hover{background:#fdeecb;color:#1a2332;}

/* Section-level backgrounds unified to the site background color */
.em-reg-section, .em-footer, footer { background-color: #ECF1F6 !important; background-image: none !important; }

/* ===== عداد التسجيل داخل الهيرو ===== */
.hero1-section-area .heading-area .em-countdown{
  width:min(430px,100%);
  margin:0 auto 16px;
  padding:12px 16px;
  border-radius:16px;
  background:rgba(255,255,255,.88);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  border:1px solid rgba(237,148,7,.45);
  box-shadow:0 12px 28px rgba(26,35,50,.12);
  text-align:center;
}
.hero1-section-area .heading-area .em-countdown .em-cd-top{justify-content:center;margin-bottom:8px}
.hero1-section-area .heading-area .em-countdown .em-cd-grid{gap:7px}
.hero1-section-area .heading-area .em-countdown .em-cd-unit{background:#FFF8EC;border:1px solid rgba(237,148,7,.35);border-radius:10px;padding:7px 4px}
.hero1-section-area .heading-area .em-countdown .em-cd-num{color:#ED9407;font-size:21px}
.hero1-section-area .heading-area .em-countdown .em-cd-lbl{color:#1a2332;font-size:11px}
.hero1-section-area .heading-area .em-countdown .em-cd-seats{margin-top:10px;text-align:right}
.hero1-section-area .heading-area .em-countdown .em-cd-seats-lbl,
.hero1-section-area .heading-area .em-countdown .em-cd-seats-val{color:#1a2332}
.hero1-section-area .heading-area .em-countdown .em-cd-bar{background:rgba(26,35,50,.12)}
@media (max-width:480px){
  .hero1-section-area .heading-area .em-countdown{padding:10px 12px;border-radius:13px;margin-bottom:12px}
  .hero1-section-area .heading-area .em-countdown .em-cd-num{font-size:18px}
  .hero1-section-area .heading-area .em-countdown .em-cd-lbl{font-size:10px}
}
