/* =========================================================
   We-Placed: styles for sections added to the Recruta template
   Load AFTER main.css and responsive.css
   Palette matches the We-Placed logo: teal #00bda7 + grey #5d5d5d, with a deep teal-black for dark areas
   ========================================================= */

:root {
  --wp-ink: #0f2c2b; /* deep teal-black, for dark surfaces */
  --wp-teal: #00bda7; /* logo teal */
  --wp-teal-dark: #007f70; /* teal for text on white (AA contrast) */
  --wp-logo-grey: #5d5d5d;
  --wp-mint: #8fe5d9;
  --wp-mint-soft: #d4f6f1;
  --wp-grey: #f3f8f7;
  --wp-text: #0f2c2b;
  --wp-muted: #4a5a59;
  --wp-border: rgba(15, 44, 43, 0.12);
  --wp-surface: #ffffff;
  --wp-radius: 16px;
  --wp-shadow: 0 10px 30px rgba(15, 44, 43, 0.08);
}

html {
  scroll-behavior: smooth;
}
section[id],
main[id] {
  scroll-margin-top: 90px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Header fixes ---------- */
.header-info__item a {
  color: inherit;
  text-decoration: none;
}
.header-info__item a:hover {
  text-decoration: underline;
}

/* ---------- Shared section heading ---------- */
.wp-section-head {
  max-width: 980px;
  margin: 0 auto 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center; /* keeps the little label pill centred over the title */
  gap: 14px;
}
.wp-section-head h2,
.wp-section-head p {
  margin: 0;
}

/* ---------- Readable text on the soft-blue cards (white on #96b9ff was too faint) ---------- */
.about-card-companies,
.why-choose-card-testimonial,
.testimonial__review-card {
  color: var(--wp-ink);
}
.about-card-companies p,
.about-card-companies .accent-color-6,
.why-choose-card-testimonial p,
.testimonial__review-card p {
  color: var(--wp-ink) !important;
}
.testimonial__review-card p {
  font-size: 1.05rem;
  line-height: 1.7;
}
.testimonial__review-card .testimonial__review-rating {
  margin-bottom: 14px;
}
.testimonial__review-card .testimonial__review-rating i {
  color: var(--wp-ink);
}
.why-choose-card-testimonial p {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.5;
}

/* ---------- Hero highlights ---------- */
.wp-hero-highlights {
  list-style: none;
  margin: 32px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.wp-hero-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.wp-hero-highlights i {
  color: var(--wp-teal);
}

/* ---------- Key numbers: navy band ---------- */
.wp-stats-section {
  background: var(--wp-ink);
  color: #fff;
}
.wp-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  text-align: center;
}
.wp-stats__number {
  direction: ltr;
  unicode-bidi: isolate;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--wp-teal);
}
.wp-stats__item p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.85);
}
@media (min-width: 992px) {
  .wp-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .wp-stats__item + .wp-stats__item {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
  }
}

/* ---------- Our Solution ---------- */
.wp-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: var(--wp-muted);
}
.wp-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wp-legend__item i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid var(--wp-border);
}
.wp-legend__item.wp-owner-wp i {
  
  background: var(--wp-teal);
}
.wp-legend__item.wp-owner-emp i {
 background: var(--wp-ink);
}
.wp-legend__item.wp-owner-joint i {
  background: var(--wp-mint);
}

.wp-guarantee {
  display: flex;
  width: fit-content;
  margin: 0 auto 40px;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--wp-ink);
  color: #fff;
  font-weight: 700;
}
.wp-guarantee i {
  color: var(--wp-teal);
}

.wp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.wp-step {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--wp-surface);
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius);
  box-shadow: var(--wp-shadow);
}
.wp-step__num {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
 background: var(--wp-teal);
    color: var(--wp-ink);
}
.wp-step.wp-owner-emp .wp-step__num {
  background: var(--wp-ink);
  color: #fff;
}
.wp-step.wp-owner-joint .wp-step__num {
  background: var(--wp-teal);
    color: var(--wp-ink);
}
#solutions .wp-step:nth-of-type(9) .wp-step__num {
  background: var(--wp-ink);
  color: #fff;
}
#solutions .wp-step:nth-of-type(9) .wp-step__owner {
  background: var(--wp-ink);
  color: #fff;
}

.wp-step__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.wp-step__body h3,
.wp-step__body p {
  margin: 0;
}
.wp-step__body p {
  color: var(--wp-muted);
}
.wp-step__owner {
  width: fit-content;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--wp-teal);
    color: var(--wp-ink);
}
.wp-step.wp-owner-emp .wp-step__owner {
  background: var(--wp-ink);
  color: #fff;
}
.wp-step.wp-owner-joint .wp-step__owner {
 background: var(--wp-teal);
    color: var(--wp-ink);
}
.wp-step__time {
  width: fit-content;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--wp-ink);
}
.wp-step__time::before {
  content: "\23F1\00A0";
}
@media (min-width: 768px) {
  .wp-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Industries & roles ---------- */
.wp-industries {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.wp-industry {
  padding: 28px;
  border-radius: var(--wp-radius);
  border: 1px solid var(--wp-border);
  background: var(--wp-surface);
  box-shadow: var(--wp-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 4px solid var(--wp-ink);
}
.wp-industry h3 {
  margin: 0;
  color: var(--wp-ink);
}
.wp-industry__num {
  width: fit-content;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--wp-teal);
  color: var(--wp-ink);
  font-weight: 700;
  font-size: 0.85rem;
}
.wp-industry ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wp-industry li {
  position: relative;
  padding-left: 22px;
  color: var(--wp-muted);
}
.wp-industry li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wp-ink);
}
@media (min-width: 768px) {
  .wp-industries {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .wp-industries {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Countries (last row stays centred) ---------- */
.wp-countries {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.wp-country {
  flex: 1 1 100%;
  padding: 28px;
  border-radius: var(--wp-radius);
  border: 1px solid var(--wp-border);
  background: var(--wp-surface);
  box-shadow: var(--wp-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.wp-country:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 44, 43, 0.16);
}
.wp-country h3,
.wp-country p {
  margin: 0;
}
.wp-country p {
  flex: 1 1 auto;
  color: var(--wp-muted);
}
.wp-country__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wp-ink);
  color: var(--wp-teal);
  font-size: 1.35rem;
}
.wp-country .btn {
  min-height: 48px;
  text-align: center;
}
@media (min-width: 768px) {
  .wp-country {
    flex-basis: calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}
@media (min-width: 992px) {
  .wp-country {
    flex-basis: calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
  }
}
@media (min-width: 1200px) {
  .wp-country {
    flex-basis: calc(25% - 15px);
    max-width: calc(25% - 15px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .wp-country {
    transition: none;
  }
  .wp-country:hover {
    transform: none;
  }
}

/* ---------- How we work: 4-step strip ---------- */
.wp-glance {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: glance;
}
.wp-glance__item {
  counter-increment: glance;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 36px 20px 28px;
  text-align: center;
  background: var(--wp-surface);
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius);
  box-shadow: var(--wp-shadow);
}
.wp-glance__item::before {
  /* content: counter(glance); */
  position: absolute;
  top: 12px;
  left: 14px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wp-teal);
  color: var(--wp-ink);
  font-size: 0.85rem;
  font-weight: 700;
}
.wp-glance__item h3 {
  margin: 0;
  color: var(--wp-ink);
}
.wp-glance__icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wp-ink);
  color: var(--wp-teal);
  font-size: 1.3rem;
}
@media (min-width: 768px) {
  .wp-glance {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .wp-glance {
    grid-template-columns: repeat(4, 1fr);
  }
  .wp-glance__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 66px;
    right: -20px;
    width: 20px;
    height: 2px;
    background: var(--wp-ink);
    opacity: 0.25;
  }
}

/* ---------- Technology ---------- */
.wp-tech {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.wp-tech__card {
  padding: 32px;
  border-radius: var(--wp-radius);
  border: 1px solid var(--wp-border);
  background: var(--wp-surface);
  box-shadow: var(--wp-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wp-tech__card h3,
.wp-tech__card p {
  margin: 0;
}
.wp-tech__card p {
  color: var(--wp-muted);
}
.wp-tech__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--wp-ink);
  color: var(--wp-teal);
  font-size: 1.3rem;
}
.wp-tech__closing {
  max-width: 860px;
  margin: 40px auto 0;
  padding: 24px 32px;
  border-radius: var(--wp-radius);
  background: var(--wp-ink);
  color: #fff;
  text-align: center;
  font-family: inherit;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.6;
}
@media (min-width: 992px) {
  .wp-tech {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Request workers form ---------- */
.wp-request {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.wp-request__intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.wp-request__intro > * {
  margin: 0;
}
.wp-request__intro .sub-heading {
  width: fit-content;
}
.wp-request__intro .contact-cta__highlight-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.wp-request__intro .contact-cta__highlight {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.wp-request__intro .contact-cta__highlight-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wp-request__intro .contact-cta__highlight-body > * {
  margin: 0;
}
@media (max-width: 767.98px) {
  .wp-request {
    gap: 32px;
  }
  .wp-request__intro {
    gap: 14px;
  }
  .wp-request__intro .contact-cta__highlight-list {
    gap: 16px;
  }
  .wp-request__intro .contact-cta__highlight {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-align: start;
  }
  .wp-request__intro .contact-cta__highlight-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  .wp-request__intro .contact-cta__highlight-body {
    min-width: 0;
    text-align: start;
  }
  .wp-request__intro .contact-cta__highlight-body h3 {
    line-height: 1.35;
  }
}
@media (min-width: 992px) {
  .wp-request {
    grid-template-columns: 1fr 1.05fr;
    gap: 64px;
  }
}
.wp-form-card {
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.wp-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.wp-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 576px) {
  .wp-form__row {
    grid-template-columns: 1fr 1fr;
  }
}
.wp-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wp-field span {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--wp-ink);
}
.wp-field input,
.wp-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--wp-border);
  border-radius: 10px;
  background: var(--wp-grey);
  color: var(--wp-ink);
  font: inherit;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.wp-field input:focus,
.wp-field textarea:focus {
  background: #fff;
  border-color: var(--wp-ink);
  outline: none;
}
.wp-field input:focus-visible,
.wp-field textarea:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 189, 167, 0.45);
}
.wp-hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}
.wp-form__alt {
  margin: 18px 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--wp-muted);
}
.wp-form__alt a {
  font-weight: 700;
  color: var(--wp-ink);
  text-decoration: none;
}
.wp-form__alt a:hover {
  text-decoration: underline;
}
.wp-form-card .alert {
  margin-bottom: 16px;
}
.wp-form-card .alert.hidden {
  display: none;
}

/* =========================================================
   BRAND RECOLOUR: maps the theme's navy / lime / blue to the logo palette
   ========================================================= */

/* Buttons */
.btn-accent {
  background: var(--wp-teal) !important;
  border-color: var(--wp-teal) !important;
  color: var(--wp-ink) !important;
  box-shadow: 4px 4px 0 var(--wp-logo-grey) !important;
  font-weight: 700;
}
.btn-accent:hover,
.btn-accent:focus-visible {
  background: #00a894 !important;
  border-color: #00a894 !important;
  color: #fff !important;
}
.btn-transparent:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* Top bar */
.header-info__wrapper {
  background: var(--wp-ink) !important;
}
.header-info__item i {
  color: var(--wp-teal) !important;
}
.header-info__container {
  align-items: center;
}

/* Navigation */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--wp-teal-dark) !important;
}

/* Label pills above headings */
.sub-heading {
  background: var(--wp-mint-soft) !important;
  color: var(--wp-teal-dark) !important;
}
.sub-heading.sub-heading-dark {
  background: rgba(0, 189, 167, 0.18) !important;
  color: var(--wp-mint) !important;
}

/* Dark hero, request band and footer: tint the theme photo with deep teal */
.banner-home,
.contact-cta__banner,
.footer-container {
  position: relative;
  background-color: var(--wp-ink) !important;
}
.banner-home::after,
.contact-cta__banner::after,
.footer-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 44, 43, 0.93),
    rgba(15, 44, 43, 0.82) 60%,
    rgba(0, 120, 107, 0.55)
  );
  pointer-events: none;
  z-index: 0;
}
.banner-home > .page-container,
.contact-cta__banner > .page-container,
.footer-container > .page-container {
  position: relative;
  z-index: 1;
}

/* Headings on light sections */
.section:not(.banner-home):not(.contact-cta__banner) :is(h1, h2, h3, h4) {
  color: var(--wp-ink);
}
.accent-color-5 {
  color: var(--wp-teal) !important;
}

/* Cards that were blue / indigo / navy in the theme */
.about-card-companies {
  background: var(--wp-mint) !important;
}
.about-card-candidates {
  background: var(--wp-ink) !important;
}
.about-card-candidates :is(h3, h4, p) {
  color: #fff !important;
}
.why-choose-card-support {
  background: var(--wp-teal) !important;
}
.why-choose-card-support-heading {
  color: var(--wp-ink) !important;
  font-weight: 700;
}
.why-choose-card-testimonial {
  background: var(--wp-mint-soft) !important;
}
.why-choose-card-stats {
  background: var(--wp-ink) !important;
}
.why-choose-card-stats p {
  color: rgba(255, 255, 255, 0.9) !important;
}
.testimonial__review-card {
  background: var(--wp-mint-soft) !important;
}
.testimonial__review-card .testimonial__review-rating i {
  color: var(--wp-teal-dark) !important;
}

/* Round icon chips */
.about__intro-highlight-icon,
.faq__help-icon,
.contact-cta__highlight-icon {
  background: var(--wp-mint) !important;
  color: var(--wp-ink) !important;
}
.why-choose__checklist-icon,
.why-choose__checklist-icon i {
  color: var(--wp-teal-dark) !important;
}

/* FAQ */
.faq__accordion-item.active,
.faq__accordion-item.active .accordion-button,
.accordion-button:not(.collapsed) {
  background: var(--wp-ink) !important;
  color: #fff !important;
}
.faq__accordion-item.active .accordion-body,
.faq__accordion-item.active p {
  color: #fff;
}

/* Text links */
.service-page-cta-link,
.about__cta-link {
  color: var(--wp-teal-dark) !important;
  font-weight: 700;
}

/* Footer */
.footer-container,
.footer-container :is(a, p, li, span, h3) {
  color: #fff;
}
.footer-list i {
  color: var(--wp-teal) !important;
}
.footer-list a:hover {
  color: var(--wp-mint);
}
.footer-logo img {
  max-width: 220px;
  height: auto;
}

/* =========================================================
   LANGUAGE TOGGLE (top bar) + FIRST-VISIT POPUP
   ========================================================= */
.wp-lang-toggle {
  margin-inline-start: auto;
  padding: 4px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.wp-lang-toggle:hover {
  background: var(--wp-teal);
  border-color: var(--wp-teal);
  color: var(--wp-ink);
}
.wp-lang-toggle:focus-visible {
  outline: 2px solid var(--wp-mint);
  outline-offset: 2px;
}
.header-info__container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wp-lang-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 44, 43, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.wp-lang-modal[hidden] {
  display: none;
}
.wp-lang-modal__card {
  width: 100%;
  max-width: 520px;
  padding: 40px 32px 32px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  border-top: 6px solid var(--wp-teal);
  animation: wp-pop 0.35s ease-out both;
}
.wp-lang-modal__logo {
  height: 56px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 20px;
  display: block;
  object-fit: contain;
}
.wp-lang-modal__title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--wp-ink);
}
.wp-lang-modal__text {
  margin: 0 0 28px;
  color: var(--wp-muted);
}
.wp-lang-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.wp-lang-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 12px;
  border: 2px solid var(--wp-ink);
  border-radius: 14px;
  background: #fff;
  color: var(--wp-ink);
  font: inherit;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.wp-lang-btn:hover {
  background: var(--wp-mint-soft);
  transform: translateY(-2px);
}
.wp-lang-btn:focus-visible {
  outline: 3px solid var(--wp-teal);
  outline-offset: 3px;
}
.wp-lang-btn--primary {
  background: var(--wp-teal);
  border-color: var(--wp-teal);
}
.wp-lang-btn--primary:hover {
  background: #00a894;
}
.wp-lang-btn__name {
  font-size: 1.25rem;
  font-weight: 700;
}
.wp-lang-btn__sub {
  font-size: 0.85rem;
  opacity: 0.8;
}
@keyframes wp-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 480px) {
  .wp-lang-modal__actions {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wp-lang-modal__card {
    animation: none;
  }
  .wp-lang-btn {
    transition: none;
  }
}
html.wp-modal-open {
  overflow: hidden;
}

/* =========================================================
   ARABIC / RTL
   ========================================================= */
html[lang="ar"] body,
html[lang="ar"]
  :is(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    a,
    li,
    span,
    label,
    button,
    input,
    textarea,
    strong,
    .btn
  ) {
  font-family: "Cairo", "Tajawal", "Segoe UI", Tahoma, sans-serif !important;
}
html[lang="ar"] * {
  letter-spacing: 0 !important;
}
html[lang="ar"] .sub-heading {
  text-transform: none !important;
}
html[lang="ar"] h1,
html[lang="ar"] h2 {
  line-height: 1.35;
}

/* phone numbers, e-mail and web address stay left-to-right inside Arabic text */
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] a[href^="mailto:"],
html[dir="rtl"] a[href^="https://www"] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
html[dir="rtl"] .wp-floating-contact__button[href^="tel:"] {
  display: flex;
}

/* my components: mirror the physical left/right values */
html[dir="rtl"] .wp-industry li {
  padding-left: 0;
  padding-right: 22px;
}
html[dir="rtl"] .wp-industry li::before {
  left: auto;
  right: 0;
}
html[dir="rtl"] .wp-glance__item::before {
  left: auto;
  right: 14px;
}
html[dir="rtl"] .wp-glance__item:not(:last-child)::after {
  right: auto;
  left: -20px;
}
@media (min-width: 992px) {
  html[dir="rtl"] .wp-stats__item + .wp-stats__item {
    border-left: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }
}
html[dir="rtl"] .wp-field input,
html[dir="rtl"] .wp-field textarea {
  text-align: right;
}
html[dir="rtl"] .wp-field input[type="email"],
html[dir="rtl"] .wp-field input[type="tel"],
html[dir="rtl"] .wp-field input[type="number"] {
  direction: ltr;
  text-align: right;
}
html[dir="rtl"] .wp-step__time::before {
  content: "\23F1\00A0";
}

/* =========================================================
   LAYOUT FIXES (round 3)
   ========================================================= */

/* ---- Header: 7 links + button must never overlap ---- */
.navbar-nav-container {
  gap: 16px;
}
.nav-link-container {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
.navbar-nav {
  flex-wrap: nowrap;
  justify-content: space-around;
  width: 100%;
  gap: 28px;
}
.navbar-nav .nav-link {
  white-space: nowrap;
  padding: 8px 14px !important;
}
.navbar-logo-container {
  flex: 0 0 20%;
}
.navbar-logo-container img {
  width: 145px;
  max-width: 100%;
}
.navbar-cta-container {
  flex: 0 0 auto;
  width: auto;
}
@media (min-width: 768px) and (max-width: 1099px) {
  .navbar-cta-container {
    display: none !important;
  } /* the hero already has the same button */
  .navbar-nav .nav-link {
    padding: 8px 9px !important;
    font-size: 13.5px !important;
  }
}
@media (min-width: 1100px) and (max-width: 1399px) {
  .navbar-nav .nav-link {
    padding: 8px 11px !important;
    font-size: 15px !important;
  }
  .navbar-cta-container .btn {
    white-space: nowrap;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* ---- Hero: breathing room under the highlights; decoration recoloured to teal ---- */
.home__intro {
  padding-bottom: 56px;
}
/* .home__image-decoration img {
  filter: hue-rotate(-50deg) saturate(1.15);
} */
.wp-hero-highlights {
  margin-bottom: 0;
}

/* ---- Industry strip: tidy centred chips, nothing cut off ---- */
.wp-industry-slider {
  width: 100%;
  overflow: hidden;
}
.wp-industry-strip {
  list-style: none;
  margin: 8px 0 0;
  padding: 4px 0;
}
.wp-industry-strip .swiper-slide {
  width: auto;
  height: auto;
  white-space: nowrap;
  padding: 10px 22px;
  border: 1px solid var(--wp-teal);
  border-radius: 999px;
  background: var(--wp-teal);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--wp-ink);
}

.wp-floating-contact {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wp-floating-contact__button {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.wp-floating-contact__button:hover {
  color: #fff;
  transform: scale(1.06);
}
.wp-floating-contact__button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.wp-floating-contact__button--call {
  background-color: #00a894;
}
.wp-floating-contact__button--whatsapp {
  background-color: #25d366;
}
@media (max-width: 767.98px) {
  .wp-floating-contact {
    right: 12px;
    bottom: 16px;
    gap: 10px;
  }
  .wp-floating-contact__button {
    width: 52px;
    height: 52px;
  }
}

/* ---- About: second card text sits closer to its heading ---- */
.about-card-candidates {
  justify-content: flex-start !important;
  gap: 14px;
}
.about-card-candidates .divider {
  margin: 0 !important;
}

/* ---- Industry cards: top accent follows the rounded corners ---- */
.wp-industry {
  border-top: 1px solid var(--wp-border);
  box-shadow:
    inset 0 4px 0 var(--wp-teal),
    var(--wp-shadow);
  padding-top: 32px;
}

/* ---- Country cards: buttons aligned, no offset shadow poking out ---- */
.wp-country .btn {
  box-shadow: none !important;
  margin-top: auto;
  min-height: 52px;
  font-size: 0.9rem;
  line-height: 1.25;
  padding-left: 14px !important;
  padding-right: 14px !important;
}
.wp-country {
  padding-bottom: 24px;
}

/* ---- How we work: badge sits clear of the corner ---- */
.wp-glance__item {
  padding-top: 44px;
}
.wp-glance__item::before {
  top: 14px;
  left: 16px;
}
html[dir="rtl"] .wp-glance__item::before {
  left: auto;
  right: 16px;
}

/* ---- Full-width cards that used the template font by accident ---- */
.why-choose-card-testimonial p,
.wp-tech__closing {
  font-family: inherit;
}

/* ---- FAQ: open item body uses the same dark as its header ---- */
.faq__accordion-item.active .accordion-collapse,
.faq__accordion-item.active .accordion-body,
.faq__accordion-item.active {
  background: var(--wp-ink) !important;
}

/* ---- Form button: no offset shadow inside the white card ---- */
.wp-form-card .btn-accent,
.faq__help-card .btn-accent {
  box-shadow: none !important;
}

/* =========================================================
   GOOGLE TRANSLATE: hide its banner/widget, keep the page clean
   ========================================================= */
.goog-te-banner-frame,
.skiptranslate iframe,
iframe.skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
}
body {
  top: 0 !important;
  position: static !important;
}
#google_translate_element {
  display: none;
}
/* Google highlights text on hover: switch that off */
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}
font {
  background: transparent !important;
  box-shadow: none !important;
}

/* Premium loading state while the Arabic translation is applied */
html.wp-pending body {
  opacity: 0;
}
html.wp-pending::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 40%;
  background: var(--wp-teal);
  z-index: 100000;
  animation: wp-load 1.1s ease-in-out infinite;
}
@keyframes wp-load {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(260%);
  }
}
html:not(.wp-pending) body {
  transition: opacity 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
  html.wp-pending::before {
    animation: none;
    width: 100%;
  }
}
@media (min-width: 768px) {
  .wp-hero-highlights {
    width: 800px !important;
    /* max-width: 790px !important; */
    gap: 12px 15px !important;
    flex-wrap: wrap !important;
  }
  .p-line-new {
    /* width: 100% !important; */
    width: 950px !important;
  }
}

@media (max-width: 991px) {
  .navbar-logo-container {
    flex: 0 0 75%;
  }
  .flex-gap-4 {
    gap: 1.5rem !important;
  }

  .home__image-intro {
    width: 70%;
    margin-bottom: -75px;
  }
}

/* ---------- Consistent section rhythm ---------- */
/* .section {
  padding: clamp(48px, 6vw, 88px) 20px;
} */
.wp-section-head {
  gap: 12px;
  margin-bottom: 36px;
}
.wp-section-head > p.p-line-new {
  width: auto !important;
  max-width: 100%;
}
.parnership-section {
  padding-bottom: 0;
}

/* ---------- Industry strip hover state ---------- */
.wp-industry-strip .swiper-slide {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.wp-industry-strip .swiper-slide:hover,
.wp-industry-strip .swiper-slide:focus-visible {
  background: var(--wp-mint);
  border-color: var(--wp-mint);
  color: var(--wp-ink);
}

/* ---------- Additional About card ---------- */
.about-card-process {
  min-height: 150px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--wp-mint-soft);
  color: var(--wp-ink);
  text-align: center;
}
.about-card-process__number {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wp-ink);
  color: var(--wp-teal);
  font-size: 2rem;
  font-weight: 700;
}
.about-card-process h4,
.about-card-process p {
  margin: 0;
}
.about-card-process p {
  margin-top: 6px;
  color: var(--wp-muted);
}

/* ---------- Carousel controls and card sizing ---------- */
.wp-industries-slider,
.wp-countries-slider {
  width: 100%;
  overflow: hidden;
}
.wp-industries {
  display: flex;
  grid-template-columns: none;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
}
.wp-industry.swiper-slide,
.wp-country.swiper-slide {
  display: flex;
  height: auto;
}
.wp-industry {
  flex: 0 0 auto;
  min-height: 100%;
}
.wp-countries {
  flex-wrap: nowrap;
  justify-content: initial;
  gap: 0;
  margin: 0;
  padding: 0;
}
.wp-country {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  min-height: 100%;
}
.wp-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.wp-carousel-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--wp-border);
  border-radius: 50%;
  background: #fff;
  color: var(--wp-ink);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.wp-carousel-button:hover,
.wp-carousel-button:focus-visible {
  border-color: var(--wp-teal);
  background: var(--wp-teal);
  color: var(--wp-ink);
}
.wp-carousel-button:focus-visible {
  outline: 3px solid rgba(0, 189, 167, 0.35);
  outline-offset: 2px;
}
.wp-carousel-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.wp-carousel-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  background: var(--wp-ink);
  opacity: 0.25;
}
.wp-carousel-pagination .swiper-pagination-bullet-active {
  width: 22px;
  border-radius: 999px;
  background: var(--wp-teal-dark);
  opacity: 1;
}

/* The headline card in Why Choose Us needs room for its full message. */
.why-choose-card-testimonial {
  min-height: 220px;
  justify-content: center;
}

.why-choose__page-layout--content-only {
  grid-template-columns: minmax(0, 1fr);
}
.why-choose__page-layout--content-only .why-choose__content {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding-left: 0;
}

@media (max-width: 575.98px) {
  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .wp-section-head {
    margin-bottom: 28px;
  }
  .about-card-process {
    flex-direction: column;
    gap: 12px;
  }
  .wp-carousel-controls {
    gap: 12px;
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wp-industry-strip .swiper-slide,
  .wp-carousel-button {
    transition: none;
  }
}
@media (max-width: 767px) {
  .home__image-decoration {
    left: 0;
  }
  .new-fm {
    font-size: 12px;
  }
}

.wp-lang-toggle--nav {
  display: none;
}

@media (max-width: 767.98px) {
  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .header-info__wrapper {
    display: none;
  }

  .navbar-container {
    padding: 14px 20px;
  }
  .footer-container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .navbar-nav-container {
    gap: 8px;
  }
  .navbar-logo-container {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    justify-content: flex-start;
  }
  .navbar-logo-container img {
    width: 125px;
    max-width: 100%;
  }
  .wp-lang-toggle--nav {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 7px 10px;
    border-color: rgba(15, 44, 43, 0.25);
    color: var(--wp-ink);
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .nav-btn {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    font-size: 20px;
  }

  .banner-home .home__page-layout {
    align-items: flex-start;
  }
  .banner-home .home__intro {
    align-items: flex-start;
    text-align: start;
  }
  .banner-home .home__intro > p {
    width: 100%;
  }
  .banner-home .home__intro > .d-flex {
    justify-content: flex-start;
  }
  .banner-home .sub-heading {
    width: fit-content;
    max-width: 100%;
    padding: 8px 12px;
    font-size: clamp(9px, 2.5vw, 10px);
    letter-spacing: 1px;
    white-space: normal;
  }

  #solutions .wp-section-head,
  #industries .wp-section-head,
  #countries .wp-section-head,
  .wp-technology-section .wp-section-head {
    align-items: flex-start;
    margin-left: 0;
    margin-right: 0;
    text-align: start;
  }
  #solutions .wp-legend {
    justify-content: flex-start;
  }
  #solutions .wp-guarantee {
    margin-left: 0;
    margin-right: 0;
  }
  #solutions .service-page-cta {
    text-align: start;
  }
  .wp-technology-section .wp-tech__closing {
    margin-left: 0;
    margin-right: 0;
    text-align: start;
  }

  #faq .faq__page-layout {
    align-items: stretch;
  }
  #faq .faq__content {
    display: contents;
  }
  #faq .faq__content > .sub-heading,
  #faq .faq__content > h2 {
    order: 1;
    text-align: start;
  }
  #faq .faq__accordion-col {
    order: 2;
  }
  #faq .faq__help-card {
    order: 3;
    width: 100%;
  }

  .sidebar {
    width: min(350px, 100vw);
    padding: 0 16px 24px;
  }
  .sidebar-menu {
    margin-top: 8px;
    margin-bottom: 20px;
  }
  .sidebar-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 15px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  .sidebar-contact h2,
  .sidebar-contact p {
    margin: 0;
  }
  .sidebar-contact h2 {
    color: #000000;
  }
  .sidebar-contact > a,
  .sidebar-contact > p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #000000;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
  }
  .sidebar-contact > a i,
  .sidebar-contact > p i {
    flex: 0 0 18px;
    color: var(--wp-teal);
    text-align: center;
  }
  .sidebar-contact > a:hover {
    color: var(--wp-mint);
  }
  .sidebar-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 4px;
  }
  .sidebar-social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--wp-teal);
    font-size: 17px;
    text-decoration: none;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }
  .sidebar-social a:hover,
  .sidebar-social a:focus-visible {
    background: var(--wp-teal);
    color: var(--wp-ink);
  }
  .sidebar-social a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
  }
}

/* Keep Arabic layouts aligned to the reading direction. */
html[dir="rtl"] .wp-floating-contact {
  right: auto;
  left: 16px;
}
html[dir="rtl"] .home__image-decoration {
  right: 50px;
  left: auto;
}
html[dir="rtl"] .about__image-col {
  padding-right: 20px;
  padding-left: 0;
}
html[dir="rtl"] .why-choose__content {
  padding-right: 20px;
  padding-left: 0;
}
html[dir="rtl"] #faq .faq__page-layout {
  flex-direction: row-reverse;
}
html[dir="rtl"] .wp-carousel-button i {
  transform: scaleX(-1);
}
html[dir="rtl"] .sidebar {
  right: -350px;
  left: auto;
}
html[dir="rtl"] .sidebar.active {
  transform: translateX(-350px);
}
html[dir="rtl"] .sidebar-overlay {
  right: -100%;
  left: auto;
  transition: right 0.4s ease-in-out;
}
html[dir="rtl"] .sidebar-overlay.active {
  right: 0;
  left: auto;
}
html[dir="rtl"] .sidebar-contact > a {
  display: flex;
  direction: rtl;
}
html[dir="rtl"] .sidebar-contact > a span {
  direction: ltr;
  unicode-bidi: isolate;
}

@media (max-width: 767.98px) {
  html[dir="rtl"] .home__image-decoration {
    right: 0;
  }
  html[dir="rtl"] .sidebar {
    right: -100%;
  }
  html[dir="rtl"] .sidebar.active {
    transform: translateX(-100%);
  }
  html[dir="rtl"] .wp-floating-contact {
    left: 12px;
  }
}

@media (max-width: 991.98px) {
  html[dir="rtl"] .about__image-col,
  html[dir="rtl"] .why-choose__content {
    padding: 0;
  }
  html[dir="rtl"] #faq .faq__page-layout {
    flex-direction: column;
  }
}
