/* Hero Slider Styles */
.hero-slider {
  overflow: hidden;
}

.hero-section .swiper-wrapper {
  height: 100%;
  padding-top: 0px;
}

.hero-section {
  position: relative;
  padding-top: 0px !important;
}
.hero-slider .swiper-slide {
  height: 100%;
  position: relative;
}

/* Video Background Support */
.hero-section__background-media {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

/* Custom Pagination Styles */
.hero-pagination {
  position: absolute !important;
  bottom: 40px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 15 !important;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.hero-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: white;
  transform: scale(1.2);
}

.hero-pagination .bullet-inner {
  position: absolute;
  inset: 2px;
  background: transparent;
  border-radius: 50%;
}

/* Custom Navigation Arrows */
.hero-nav-prev,
.hero-nav-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.hero-nav-prev:hover,
.hero-nav-next:hover {
  background: none;
  border-color: white;
  height: 50px;
}

.hero-nav-prev {
  left: auto !important;
  right: 40px !important;
}

.hero-nav-next {
  left: 40px !important;
  right: auto !important;
}

/* Hide default Swiper arrow content */
.hero-nav-prev::after,
.hero-nav-next::after {
  content: '';
  display: none;
}

/* Style the SVG icons */
.hero-nav-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1); /* Make SVG white */
  transition: transform 0.3s ease;
}

.hero-nav-prev:hover .hero-nav-icon {
  transform: translateX(-2px);
}

.hero-nav-next:hover .hero-nav-icon {
  transform: translateX(2px);
}

/* Mobile adjustments for hero slider */
@media (max-width: 768px) {
  .hero-nav-prev,
  .hero-nav-next {
    width: 40px;
    height: 40px;
    display: none; /* Hide on mobile for cleaner look */
  }

  .hero-pagination {
    bottom: 20px;
  }

  .hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }
}

/* Ensure single slides work without Swiper */
.hero-section:not(.hero-slider) .hero-slide {
  height: 100%;
}

/* Fix for hero content wrapper in slider */
.hero-slider .hero-section__content-wrapper {
  height: 100%;
}

/* Ensure video elements respect container bounds */
.hero-slide video {
  pointer-events: none; /* Prevent video controls from showing */
}

.hero-section__title {
  color: #FFF;
  text-align: center;
  font-family: Assistant;
  font-size: 89px;
  font-style: normal;
  font-weight: 700;

}

.main-header.is-home-top.is-scrolled {
  background: #00476f;
}

/* Force phone icon to always be white */
.main-header__desktop-phone-icon path {
  fill: white !important;
}

.main-header__desktop-phone-icon rect {
  fill: white !important;
}

.main-header__desktop-phone-icon {
  fill: white !important;
}

/* Ensure phone icon stays white in all states */
.main-header.is-scrolled .main-header__desktop-phone-icon path,
.main-header.is-scrolled .main-header__desktop-phone-icon rect,
.main-header.is-scrolled .main-header__desktop-phone-icon {
  fill: white !important;
}

/* Override any inline styles or JavaScript manipulation */
.main-header__desktop-phone-link svg path {
  fill: white !important;
}

.main-header__desktop-phone-link svg rect {
  fill: white !important;
}


.job-contact-section__form-wrapper form{
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.button-triangle-left.contact-form__submit-button:hover {
  background-color: #eaeff2 !important;
  color: #00476f;
}

.contact-form__submit-button {
  width: 100%;
  color: black;
  height: 100%;
  cursor: pointer;
}

.contact-form__submit-button:hover {
  width: 100%;
  color: #00476f;
  height: 100%;
}

.contact-form__input {
  direction: rtl !important;
}

.contact-form__select-wrapper .wpcf7-form-control-wrap {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.newsletter-section__submit-button {
  background: white;
  width: 100%;
  height: 43px;
  min-width: 100px;
  cursor: pointer;
}

.newsletter-section__input {
  direction: rtl !important;
}

.hero-section__overlay {
  display: none;
}


.page-template-page-contact .contact-form__submit-button {
  width: 100%;
  color: white;
  height: 100%;
  cursor: pointer;
}

.page-template-page-contact .button-triangle-left.contact-form__submit-button:hover {
  background-color: #eaeff2 !important;
  color: #00476f;
}


.page-template-page-contact .button-triangle-left::before {
  content: "";
  position: absolute;
  top: 0;
  left: -15px;
  width: 0;
  height: 0;
  border-top: 21.5px solid transparent;
  border-bottom: 20.5px solid transparent;
  border-right: 15px solid var(--button-triangle-color, white);
}

.main-footer__form-column .button-triangle-left::before {
  content: "";
  position: absolute;
  top: 0;
  left: -15px;
  width: 0;
  height: 0;
  border-top: 22.5px solid transparent;
  border-bottom: 20.5px solid transparent;
  border-right: 15px solid var(--button-triangle-color, white);
}

.page-template-page-contact .button-triangle-left:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: -15px;
  width: 0;
  height: 0;
  border-top: 21.5px solid transparent;
  border-bottom: 20.5px solid transparent;
  border-right: 15px solid #eaeff2;
}


.main-footer__form-column .button-triangle-left:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: -15px;
  width: 0;
  height: 0;
  border-top: 22.5px solid transparent;
  border-bottom: 20.5px solid transparent;
  border-right: 15px solid #eaeff2;
}


.main-footer__copyright-section {
  background: #00476f;
  color: white;
}


.contact-section .contact-section {
  flex-direction: row-reverse !important;
}

.single .entry-content {
  color: #000;
  text-align: right;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
}

.single .entry-content img, .single .entry-content video {
  max-width: 100%;
  height: auto;
  width: 100%;
  padding: 20px 0px;
}

.services-section__grid-wrapper {
  margin: auto;
}

.team-member-card__image-wrapper  {
  display: flex;
  justify-content: flex-end;
}

.team-member-card__image-wrapper img {
  width: auto;
  object-fit: contain;
}

.testimonial-card__video-thumbnail {
  display: none;
}

.has-youtube .fancybox__content, .has-vimeo .fancybox__content, .has-html5video .fancybox__content {
  height: 80% !important;
}

.f-thumbs__slide {
  min-height: 100px;
  min-width: 70px;
  --shift: 0 !important;
}

.f-thumbs__slide__button {
  width: 100% !important;
}
.f-thumbs__slide__img {
  width: 200%  !important;
  object-fit: cover !important;
}

@media (max-width:975px) {
  .page-template-page-contact .button-triangle-left::before {
    content: "";
    position: absolute;
    top: 0;
    left: -14px;
    width: 0;
    height: 0;
    border-top: 20.5px solid transparent;
    border-bottom: 21.5px solid transparent;
    border-right: 15px solid var(--button-triangle-color, white);
  }

  .hero-section__title {
    color: #FFF;
    text-align: center;
    font-family: Assistant;
    font-size: 29px;
    font-style: normal;
    font-weight: 700;
  }

  .button-triangle-left {
    position: relative;
    margin-left: 15px;
    height: 2.64rem;
    text-align: center;
  }


  .news-section__container {
    padding: 0px;
  }

  /* Mobile-only testimonial video FancyBox styles */
  .testimonial-card--video {
    cursor: pointer;
  }

  .testimonial-card__video-thumbnail {
    transition: transform 0.3s ease;
  }

  .testimonial-card--video:hover .testimonial-card__video-thumbnail {
    transform: scale(1.05);
  }

  /* Ensure play overlay appears above video thumbnail on mobile */
  .testimonial-card--video .testimonial-card__play-overlay {
    z-index: 10;
  }

  /* Mobile/Desktop testimonial video display rules */
  /* Desktop: Show iframe/video, hide thumbnails */
  .testimonial-card__desktop-video,
  .testimonial-card__desktop-iframe {
    display: block;
  }



  @media (max-width: 639px) {
    .testimonial-card__desktop-video,
    .testimonial-card__desktop-iframe {
      display: none;
    }

    .testimonial-card__video-thumbnail {
      display: block;
    }


    .fancybox-mobile-reels {
      background: #000 !important;
    }

    .fancybox-mobile-reels .fancybox__backdrop {
      background: #000 !important;
      opacity: 1 !important;
    }

    .fancybox-mobile-reels .fancybox__container {
      padding: 0 !important;
      margin: 0 !important;
      max-height: 100vh !important;
      height: 100vh !important;
      width: 100vw !important;
      max-width: 100vw !important;
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
    }

    .fancybox-mobile-reels .fancybox__slide {
      padding: 0 !important;
      margin: 0 !important;
      height: 100vh !important;
      width: 100vw !important;
      max-height: 100vh !important;
      max-width: 100vw !important;
    }

    .fancybox-mobile-reels .fancybox__content {
      background: #000 !important;
      padding: 0 !important;
      margin: 0 !important;
      border-radius: 0 !important;
      box-shadow: none !important;
      max-height: 100vh !important;
      height: 100vh !important;
      width: 100vw !important;
      max-width: 100vw !important;
      position: absolute !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      display: block !important;
    }

    .fancybox-mobile-reels .fancybox__content > *,
    .fancybox-mobile-reels .fancybox__content iframe,
    .fancybox-mobile-reels .fancybox__content video {
      position: absolute !important;
      top: 0 !important;
      left: 0 !important;
      width: 100vw !important;
      height: 100vh !important;
      max-width: 100vw !important;
      max-height: 100vh !important;
      border: none !important;
      margin: 0 !important;
      padding: 0 !important;
    }

    .fancybox-mobile-reels iframe {
      object-fit: cover !important;
    }

    .fancybox-mobile-reels video {
      object-fit: cover !important;
    }

    .fancybox-mobile-reels .fancybox__toolbar {
      position: absolute !important;
      top: 20px !important;
      right: 20px !important;
      z-index: 99999 !important;
      background: rgba(0, 0, 0, 0.5) !important;
      border-radius: 50% !important;
      padding: 10px !important;
    }

    .fancybox-mobile-reels .fancybox__button--close {
      color: white !important;
      font-size: 20px !important;
      width: 40px !important;
      height: 40px !important;
      background: transparent !important;
    }

    .fancybox-mobile-reels .fancybox__button--close:hover {
      background: rgba(255, 255, 255, 0.1) !important;
    }
    .services-section__step-text {
      text-align: center;
      width: fit-content;
    }
  }