/* Wafa Enterprises — custom hero slider & home enhancements */

.wafa-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #1a2744;
  aspect-ratio: 1240 / 520;
  max-height: min(72vh, 620px);
  min-height: 280px;
}

.wafa-hero__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.wafa-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 1;
}

.wafa-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.wafa-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.wafa-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #325aa0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: background 0.2s, transform 0.2s;
}

.wafa-hero__nav:hover,
.wafa-hero__nav:focus-visible {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
  outline: none;
}

.wafa-hero__nav--prev { left: 16px; }
.wafa-hero__nav--next { right: 16px; }

.wafa-hero__dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

.wafa-hero__dot {
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.wafa-hero__dot.is-active,
.wafa-hero__dot:hover {
  background: #ff5a00;
  border-color: #ff5a00;
  transform: scale(1.15);
}

.wafa-hero__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Replace rev-slider header spacing */
body.template-slider .mfn-main-slider {
  min-height: 0;
  margin: 0;
  padding: 0;
}

body.template-slider #Header_wrapper {
  min-height: 0;
}

/* Icon boxes without images — brand placeholder */
.icon_box .brand-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 219px;
  max-width: 100%;
  height: 102px;
  margin: 0 auto 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #366ec2 0%, #325aa0 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 8px;
  line-height: 1.2;
}

/* Section polish */
.mcb-section .icon_box .image_wrapper img {
  max-height: 102px;
  width: auto;
  margin: 0 auto;
  display: block;
}

.mcb-section .icon_box .desc_wrapper .title {
  margin-top: 8px;
}

.wafa-distribution-mobile {
  display: none;
}

@media (max-width: 767px) {
  .wafa-hero {
    aspect-ratio: 16 / 10;
    max-height: 50vh;
    min-height: 220px;
  }

  .wafa-hero__nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .wafa-hero__nav--prev { left: 8px; }
  .wafa-hero__nav--next { right: 8px; }

  /* Home intro — distribution text over busy background */
  .mcb-section-a70359720.equal-height-wrap .mcb-wrap {
    height: auto !important;
    display: block !important;
    width: 100% !important;
    float: none !important;
  }

  .mcb-section-a70359720 .mcb-wrap-inner {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    float: none !important;
  }

  .mcb-section-a70359720 .column {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
  }

  .mcb-section-a70359720 .mcb-wrap-8dbe7ebbf {
    padding: 24px 16px 0 !important;
    background-image: none !important;
    background-color: #f5f8fa;
  }

  .mcb-section-a70359720 .mcb-wrap-8dbe7ebbf .column_attr {
    padding: 20px 18px !important;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 14px rgba(50, 90, 160, 0.1);
  }

  .mcb-section-a70359720 .mcb-wrap-8dbe7ebbf .column_attr h2 {
    font-size: 1.35rem !important;
    line-height: 1.35 !important;
    color: #ff5a00 !important;
    margin-bottom: 12px;
  }

  .mcb-section-a70359720 .mcb-wrap-8dbe7ebbf .column_attr h3 {
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
    color: #4d6478 !important;
    font-weight: 400 !important;
  }

  .wafa-distribution-mobile {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 16px 0 0;
    padding: 0;
  }

  .mcb-section-a70359720 .mcb-wrap-69cd6b461 {
    padding: 20px 16px 32px !important;
    border-left: 0 !important;
  }

  .mcb-section-a70359720 .mcb-wrap-69cd6b461 .column_attr {
    padding: 0 !important;
  }

  .mcb-section-a70359720 .mcb-wrap-69cd6b461 .column {
    margin-bottom: 24px;
  }

  .mcb-section-a70359720 .mcb-wrap-69cd6b461 .column:last-child {
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wafa-hero__slide {
    transition: none;
  }
}
