/* MIECA public layer: the purchased Loginet files remain the design source. */
:root {
  --mieca-blue: #0878bd;
  --mieca-orange: var(--mieca-blue);
  --mieca-teal: #0b4654;
  --theme-color2: var(--mieca-blue);
  --theme-color2-rgb: 8, 120, 189;
  --theme-color7: var(--mieca-blue);
  --text-color-bg-theme-color2: #ffffff;
}

/* The original loader depends on a window-load callback. BrowserLink and
   delayed development assets can prevent that callback, leaving the whole
   site under a permanent white/translucent layer. */
.preloader {
  display: none !important;
}

html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea { font-family: Tahoma, Arial, sans-serif; }

html[dir="rtl"] .main-header .main-box,
html[dir="rtl"] .main-header .nav-outer,
html[dir="rtl"] .main-header .outer-box { direction: rtl; }

/* The original menu uses floats. Flex is required for a predictable RTL order. */
html[dir="rtl"] .main-header .navigation {
  display: flex;
  direction: rtl;
  align-items: center;
  gap: 35px;
}
html[dir="rtl"] .main-header .navigation > li {
  float: none;
  margin: 0;
  padding-right: 0;
}

html[dir="rtl"] .banner-section-one > .container-fulid > .row,
html[dir="rtl"] .about-section-one .about-sec,
html[dir="rtl"] .about-section-home2 .row,
html[dir="rtl"] .contact-section-home2-classic > .row,
html[dir="rtl"] .main-footer-section .row { direction: rtl; }

/* Keep the template's image-left/content-right composition, then localize its text. */
html[dir="rtl"] .why-choose-section-one .row.align-items-center { direction: ltr; }
html[dir="rtl"] .why-choose-section-one .why-choose-box { direction: rtl; text-align: right; }

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"] li { letter-spacing: 0 !important; word-spacing: normal !important; }

html[dir="rtl"] .section-title,
html[dir="rtl"] .section-desc,
html[dir="rtl"] .project-content,
html[dir="rtl"] .blog-content,
html[dir="rtl"] .service-content { letter-spacing: 0; word-spacing: normal; }

.mieca-header-logo { width: 175px; height: 58px; object-fit: contain; }
.mieca-mobile-logo, .mieca-sticky-logo { width: 150px; max-height: 55px; object-fit: contain; }
.mieca-sidebar-logo { width: 175px; }
.mieca-footer-logo { width: 190px; max-height: 75px; object-fit: contain; }
.mieca-social-icon {
  display: inline-block;
  width: 17px;
  height: 17px;
  fill: currentColor;
  vertical-align: middle;
}
.sidebar-area .sidebar__body .sidebar__socials ul li a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #ffffff !important;
  line-height: 1;
  position: relative;
  z-index: 2;
}
.sidebar-area .sidebar__body .sidebar__socials .mieca-social-icon {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  color: #ffffff !important;
  fill: currentColor !important;
  overflow: visible;
}

.breadcumb-area[style] { background-repeat: no-repeat; background-position: center; background-size: cover; }
.breadcumb-area {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.breadcumb-area::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(11,70,84,.32);
}
.breadcumb-area .container { position: relative; z-index: 1; }

/* The localised markup supplies the correct arrow direction; keep it physically on the left. */
html[dir="rtl"] .loginet-button a,
html[dir="rtl"] .banner-btn a,
html[dir="rtl"] .main-header .btn-title,
html[dir="rtl"] .contact-form button {
  display: inline-flex;
  direction: rtl;
  align-items: center;
  gap: 12px;
}

/* Remove the fixed-position separator from the original English quote button. */
.main-header .header-lower .outer-box .theme-btn::before {
  content: none;
  display: none;
}

/* The purchased icon is a gray placeholder. Render the Loginet accent in CSS. */
.section-sub-title .sub-title img { display: none !important; }
.section-sub-title .sub-title::before {
  content: "✦";
  display: inline-block;
  color: var(--mieca-orange);
  font-size: .72em;
  line-height: 1;
  margin-inline-end: 8px;
}

.mieca-uniform-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.mieca-honeypot { position: absolute !important; left: -10000px !important; }

.latest-blog-section-classic .single-blog-box .blog-thumb {
  height: 270px;
  overflow: hidden;
}
.latest-blog-section-classic .single-blog-box .blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-section-classic .single-service-box .service-thumb figure {
  height: 360px;
  overflow: hidden;
}
.service-section-classic .single-service-box .service-thumb figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Anchors replaced template divs; make them retain the original card geometry. */
.services-section-one .single-service-box,
.about-section-one .single-about-box {
  display: block;
  width: 100%;
}
.about-section-one .single-about-box { min-height: 252px; }

html[dir="rtl"] .services-section-one .single-service-box .service-icon,
html[dir="rtl"] .services-section-one .single-service-box.two .service-icon {
  right: auto;
  left: 0;
}
html[dir="rtl"] .services-section-one .single-service-box .service-content .service-title {
  padding: 48px 40px 0 65px;
  text-align: right;
}
html[dir="rtl"] .about-section-one .single-about-box .about-arrow {
  right: auto;
  left: 0;
}

.mieca-contact-section { overflow: hidden; }
.mieca-contact-section > .row { align-items: stretch; }
.mieca-contact-section .contact-thumb,
.mieca-contact-section .contact-thumb figure {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
.mieca-contact-section .contact-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-footer-one .phone-address { margin-top: 16px; }
.main-footer-one .phone-address a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--theme-color-white);
  font-size: 18px;
}
.main-footer-one .phone-address i { color: var(--mieca-orange); }

.mieca-warehouse-card .project-content p { margin-top: 8px; color: #a9c3ca; }

html[dir="rtl"] .nice-select { text-align: right !important; }
html[dir="rtl"] .nice-select::after { right: auto; left: 20px; }

/* Mirror only the physical template anchors that do not follow RTL automatically. */
html[dir="rtl"] .banner-section-one .banner-wrapper .safly-list {
  direction: ltr;
  text-align: left;
}
html[dir="rtl"] .banner-section-one .banner-wrapper .safly-list h4 {
  direction: rtl;
  position: relative;
  z-index: 2;
}
html[dir="rtl"] .banner-section-one .banner-wrapper .safly-list h4 i {
  margin-right: 0;
  margin-left: 10px;
}

.why-choose-section-one .why-choose-wrapper .why-choose-counter {
  background-image: none;
  background-color: var(--mieca-orange);
}
html[dir="rtl"] .why-choose-section-one .why-choose-wrapper .why-choose-counter {
  left: auto;
  right: auto;
}

html[dir="rtl"] .why-choose-section-one .why-choose-box .single-choose-box {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 28px;
}
html[dir="rtl"] .why-choose-section-one .why-choose-box .choose-wrap {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  width: 100%;
}
html[dir="rtl"] .why-choose-section-one .why-choose-box .single-choose-box .choose-icon {
  float: none;
  margin: 0;
}
html[dir="rtl"] .why-choose-section-one .why-choose-box .single-choose-box .choose-desc p {
  float: none;
  width: 100%;
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
}

html[dir="rtl"] .about-section-one .about-autor-box .about-counter {
  right: auto;
  left: 60px;
  text-align: right;
}
html[dir="rtl"] .about-section-one .about-autor-box .about-arrow {
  right: auto;
  left: 220px;
}

/* About page: preserve Loginet's original two-column hierarchy and mirror it
   cleanly instead of rebuilding the section with unrelated grid rules. */
.mieca-about-page .mieca-about-intro-copy {
  margin: 20px 0 28px;
  max-width: 610px;
}
.mieca-about-page .mieca-about-intro-copy p {
  margin: 0;
}
.mieca-about-page .about-thumb figure {
  overflow: hidden;
  border-radius: 20px;
}
.mieca-about-page .about-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.mieca-about-page .about-counter-wrapper .about-counter {
  background-image: none;
  background-color: var(--theme-color1);
}
.mieca-about-page .about-counter-wrapper .about-counter.two {
  background-image: none;
  background-color: var(--theme-color2);
}
html[dir="rtl"] .mieca-about-page .about-counter-wrapper,
html[dir="rtl"] .mieca-about-page .about-item-box,
html[dir="rtl"] .mieca-about-page .about-info-box {
  direction: rtl;
}
html[dir="rtl"] .mieca-about-page .about-counter {
  text-align: right;
}
html[dir="rtl"] .mieca-about-page .single-about-box {
  direction: rtl;
}
html[dir="rtl"] .mieca-about-page .single-about-box .about-wrap .about-icon {
  float: right;
  margin-right: 0;
  margin-left: 30px;
}
html[dir="rtl"] .mieca-about-page .single-about-box .about-desc p {
  float: left;
  text-align: right;
}
html[dir="rtl"] .mieca-about-page .about-info-box .about-btn a {
  display: inline-flex;
  direction: rtl;
  align-items: center;
  gap: 22px;
}
html[dir="rtl"] .mieca-about-page .about-info-box .about-btn a::before {
  right: auto;
  left: 44px;
}
html[dir="rtl"] .mieca-about-page .about-info-box .about-btn a i {
  margin: 0;
}
html[dir="rtl"] .mieca-about-page .about-call-info {
  text-align: right;
}

html[dir="rtl"] .work-process-section-one .row {
  direction: rtl;
}
html[dir="rtl"] .work-process-section-one .working-process-box {
  direction: rtl;
  text-align: center;
}

@media (min-width: 1400px) {
  html[dir="rtl"] .mieca-about-page .about-thumb {
    margin-left: 75px;
    margin-right: -161px;
  }
}

/* footer-shape.png in the distributed package is a 326x418 placeholder. */
.main-footer-one {
  /* Loginet overlaps its original CTA by 30px. Our last section is now the
     contact form, so that overlap makes the image appear outside its bounds. */
  margin-top: 0;
}
.main-footer-one .main-footer-section .footer-shape { display: none; }

.main-header .outer-box {
  align-items: center;
  gap: 15px;
}
.main-header .menubars-text,
.main-header .menubars {
  margin: 0;
  flex: 0 0 auto;
}

@media (min-width: 1200px) {
  .mieca-contact-section > .row > .col-xl-6:first-child {
    position: relative;
    min-height: 0;
  }
  .mieca-contact-section .contact-thumb {
    position: absolute;
    inset: 0;
  }
}

@media (max-width: 1199.98px) {
  .mieca-contact-section .contact-thumb {
    position: relative;
    min-height: clamp(360px, 58vw, 620px);
  }
  .mieca-contact-section .contact-thumb figure {
    position: absolute;
    inset: 0;
  }
}

@media only screen and (max-width: 1700px) {
  html[dir="rtl"] .why-choose-section-one .why-choose-wrapper .why-choose-counter {
    left: auto;
    right: -65px;
  }
}

@media (max-width: 991.98px) {
  .mieca-header-logo { width: 145px; height: 48px; }
  html[dir="rtl"] .mieca-about-page .about-thumb {
    margin: 35px 0 0;
  }
  .mieca-about-page .about-counter-wrapper {
    margin-top: 40px;
  }
  html[dir="rtl"] .why-choose-section-one .why-choose-box .single-choose-box {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  html[dir="rtl"] .about-section-one .about-autor-box .about-counter {
    left: 30px;
  }
}

@media (max-width: 767.98px) {
  .mieca-about-page .about-counter-wrapper {
    flex-direction: column;
    gap: 18px;
  }
  .mieca-about-page .about-counter-wrapper .about-counter,
  .mieca-about-page .about-counter-wrapper .about-counter.two {
    width: 100%;
    padding: 28px 24px 14px;
  }
  .mieca-about-page .about-item-box .single-about-box {
    display: block;
  }
  .mieca-about-page .about-item-box .single-about-box .about-wrap {
    width: 100%;
    min-height: 80px;
  }
  .mieca-about-page .about-item-box .single-about-box .about-desc p {
    float: none;
    width: 100%;
    margin-top: 20px;
  }
  .mieca-about-page .about-info-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Warehouse detail gallery: these rules live in the public stylesheet that
   is loaded on every page, rather than in the unused legacy public layer. */
.mieca-warehouse-carousel {
  position: relative;
  height: clamp(290px, 42vw, 540px);
  margin-top: 36px;
  overflow: hidden;
  border-radius: 16px;
  background: #eaf7f9;
  box-shadow: 0 12px 30px rgba(6, 72, 86, .14);
}
.mieca-carousel-track,
.mieca-carousel-slide,
.mieca-carousel-slide img { width: 100%; height: 100%; }
.mieca-carousel-slide {
  position: absolute !important;
  inset: 0;
  display: block !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.mieca-carousel-slide.is-active { opacity: 1; pointer-events: auto; }
.mieca-carousel-slide img { display: block; object-fit: cover; }
.mieca-carousel-control {
  position: absolute !important;
  top: 50%;
  z-index: 2;
  display: grid !important;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--mieca-blue);
  transform: translateY(-50%);
  cursor: pointer;
}
.mieca-carousel-control:hover { background: var(--mieca-blue); color: #fff; }
.mieca-carousel-control.is-prev { right: 18px; left: auto; }
.mieca-carousel-control.is-next { right: auto; left: 18px; }
.mieca-carousel-dots {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  z-index: 2;
  display: flex !important;
  justify-content: center;
  gap: 8px;
}
.mieca-carousel-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.6); cursor: pointer; }
.mieca-carousel-dots button.is-active { width: 25px; border-radius: 999px; background: #fff; }
@media (max-width: 575px) {
  .mieca-warehouse-carousel { height: 280px; }
  .mieca-carousel-control { width: 38px; height: 38px; }
  .mieca-carousel-control.is-prev { right: 10px; }
  .mieca-carousel-control.is-next { left: 10px; }
}

/* About and contact pages use the purchased Loginet structure directly.
   These rules only mirror the original composition for Arabic and keep
   CMS-supplied images inside the template frames. */
.breadcumb-area {
  min-height: 190px;
  padding: 72px 0 68px;
}
.breadcumb-area .breadcumb-content {
  position: relative;
  z-index: 2;
}
.mieca-template-about {
  margin: 0;
  padding: 110px 0 100px;
  border-radius: 0;
  background: #fff !important;
}
.mieca-template-about .section-title .title,
.mieca-template-about .section-desc {
  padding: 0 !important;
}
.mieca-template-about .mieca-about-intro-copy {
  margin: 22px 0 26px;
  max-width: 610px;
}
.mieca-template-about .mieca-about-intro-copy p:last-child {
  margin-bottom: 0;
}
.mieca-template-about .about-thumb figure {
  overflow: hidden;
  border-radius: 20px;
}
.mieca-template-about .about-thumb figure img {
  display: block;
  width: 100%;
  height: 475px;
  object-fit: cover;
}
.mieca-template-about .about-counter {
  min-height: 200px;
}
.mieca-template-about .about-counter[style] {
  background-position: center !important;
  background-size: cover !important;
}
.mieca-template-about .about-counter.mieca-counter-fallback,
.mieca-template-about .about-counter.two.mieca-counter-fallback {
  background-image: linear-gradient(135deg, #0b4654, #0878bd) !important;
}
html[dir="rtl"] .mieca-template-about .about-counter-wrapper,
html[dir="rtl"] .mieca-template-about .about-item-box,
html[dir="rtl"] .mieca-template-about .about-info-box,
html[dir="rtl"] .mieca-template-about .single-about-box {
  direction: rtl;
}
html[dir="rtl"] .mieca-template-about .about-counter {
  text-align: right;
}
html[dir="rtl"] .mieca-template-about .single-about-box .about-wrap .about-icon {
  float: right;
  margin-right: 0;
  margin-left: 30px;
}
html[dir="rtl"] .mieca-template-about .single-about-box .about-desc p {
  float: left;
  text-align: right;
}
html[dir="rtl"] .mieca-template-about .about-info-box .about-btn a {
  display: inline-flex;
  direction: rtl;
  align-items: center;
  gap: 22px;
}
html[dir="rtl"] .mieca-template-about .about-info-box .about-btn a::before {
  right: auto;
  left: 44px;
}
html[dir="rtl"] .mieca-template-about .about-info-box .about-btn a i {
  margin: 0;
}
html[dir="rtl"] .mieca-template-about .about-call-info {
  text-align: right;
}

.mieca-template-contact {
  overflow: hidden;
  background: #fff;
}
.mieca-contact-page,
.mieca-contact-page .mieca-template-contact,
.mieca-contact-page .mieca-template-contact > .row,
.mieca-contact-page .mieca-template-contact > .row > [class*="col-"],
.mieca-contact-page .contact-form-box {
  background-color: #fff !important;
}
.mieca-contact-page .mieca-breadcrumb-fallback {
  background-image:
    linear-gradient(110deg, rgba(11, 70, 84, .98), rgba(8, 120, 189, .78)),
    radial-gradient(circle at 70% 30%, #43a6da, #0b4654 60%) !important;
}
.mieca-contact-page .mieca-contact-image-fallback {
  min-height: 702px;
  background:
    linear-gradient(135deg, rgba(8, 120, 189, .16), rgba(11, 70, 84, .08)),
    linear-gradient(145deg, #eaf8fd, #cfeaf5);
}
.mieca-contact-page .mieca-contact-image-fallback::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(420px, 70%);
  height: min(420px, 60%);
  border: 1px solid rgba(8, 120, 189, .18);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}
.mieca-template-contact > .row {
  align-items: stretch;
  min-height: 702px;
}
.mieca-template-contact > .row > [class*="col-"] {
  display: flex;
}
.mieca-template-contact .contact-thumb,
.mieca-template-contact .contact-thumb figure {
  width: 100%;
  height: 100%;
}
.mieca-template-contact .contact-thumb figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mieca-template-contact .contact-form-box {
  width: 100%;
  min-height: 702px;
  padding: 68px clamp(42px, 5vw, 110px) 58px;
  background: #fff;
}
html[dir="rtl"] .mieca-template-contact .contact-form-box {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .mieca-template-contact .form-box > i {
  position: absolute;
  right: auto;
  left: 26px;
  margin: 0;
}
html[dir="rtl"] .mieca-template-contact .form-box input {
  padding-right: 30px;
  padding-left: 55px;
  text-align: right;
}
html[dir="rtl"] .mieca-template-contact .form-box input[dir="ltr"] {
  text-align: left;
}
html[dir="rtl"] .mieca-template-contact .form-box textarea,
html[dir="rtl"] .mieca-template-contact .form-box select {
  text-align: right;
}
html[dir="rtl"] .mieca-template-contact .contact-form button {
  display: inline-flex;
  direction: rtl;
  align-items: center;
  gap: 22px;
}
html[dir="rtl"] .mieca-template-contact .contact-form button i {
  margin: 0;
}
html[dir="rtl"] .mieca-template-contact .contact-form button::before {
  display: none;
}

@media (min-width: 1400px) {
  html[dir="rtl"] .mieca-template-about .about-thumb {
    margin-left: 75px;
    margin-right: -161px;
  }
}

@media (max-width: 1199.98px) {
  .mieca-template-contact > .row > [class*="col-"] {
    display: block;
  }
  .mieca-template-contact .contact-thumb figure {
    height: clamp(380px, 60vw, 620px);
  }
  .mieca-contact-page .mieca-contact-image-fallback {
    min-height: clamp(380px, 60vw, 620px);
  }
  .mieca-template-contact .contact-form-box {
    min-height: 0;
  }
}

@media (max-width: 991.98px) {
  html[dir="rtl"] .mieca-template-about .about-thumb {
    margin: 35px 0 0;
  }
  .mieca-template-about .about-counter-wrapper {
    margin-top: 40px;
  }
}

@media (max-width: 767.98px) {
  .mieca-template-about .about-counter-wrapper {
    flex-direction: column;
    gap: 18px;
  }
  .mieca-template-about .about-counter-wrapper .about-counter,
  .mieca-template-about .about-counter-wrapper .about-counter.two {
    width: 100%;
    padding: 28px 24px 14px;
  }
  .mieca-template-about .about-item-box .single-about-box {
    display: block;
  }
  .mieca-template-about .about-item-box .single-about-box .about-wrap {
    width: 100%;
    min-height: 80px;
  }
  .mieca-template-about .about-item-box .single-about-box .about-desc p {
    float: none;
    width: 100%;
    margin-top: 20px;
  }
  .mieca-template-about .about-info-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .mieca-template-contact .contact-thumb figure {
    height: 380px;
  }
  .mieca-contact-page .mieca-contact-image-fallback {
    min-height: 380px;
  }
  .breadcumb-area {
    min-height: 160px;
    padding: 55px 0 50px;
  }
  .mieca-template-contact .contact-form-box {
    padding: 55px 24px;
  }
}
