/**
 * Custom menu rules
 */
.custom-menu a.elementor-item {
  position: relative !important;
  text-decoration: none !important;
}

.custom-menu a.elementor-item::after {
  content: none !important;
  display: none !important;
}

.custom-menu a.elementor-item::before {
  content: '' !important;
  position: absolute !important;

  top: auto !important;
  right: auto !important;
  left: 0 !important;
  bottom: -4px !important;

  width: 100% !important;
  height: 4px !important;

  background: var(--e-global-color-text) !important;

  transform: scaleX(0) !important;
  transform-origin: left center !important;

  opacity: 0 !important;
  visibility: visible !important;

  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0s linear 0.35s !important;
}

.custom-menu li:not(.contact-menu) a.elementor-item:hover::before,
.custom-menu li:not(.contact-menu) a.elementor-item.active::before {
  transform: scaleX(1) !important;
  opacity: 1 !important;

  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0s !important;
}

.elementor-sticky__spacer .custom-menu li:not(.contact-menu) a.elementor-item::before {
    display: none !important;
}

.custom-menu li.contact-menu a.elementor-item {
  background: #000;
  border: 1px solid #000;
  padding: 5px 8px !important;
  color: #fff !important;
  transition: all 0.25s ease;
}

.custom-menu li.contact-menu a.elementor-item:hover {
  background: #fff;
  color: #000 !important;
  border-color: #000;
}

@media (max-width: 767px) {
    .custom-menu a.elementor-item::before {
        display: none !important;
    }
}

/* =========================================================
   ELEMENTOR CAROUSEL
   ========================================================= */

.custom-carousel {
  position: relative;
  width: 100% !important;
  --carousel-height: 550px;
  max-width: 100% !important;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.25);
}

.custom-carousel .elementor-image-carousel-wrapper {
  width: 100% !important;
}

.custom-carousel .swiper {
  width: 100% !important;
}

.custom-carousel .swiper-wrapper {
  width: 100% !important;
}

.custom-carousel .swiper-slide {
  width: 100% !important;
  overflow: hidden !important;
}

.custom-carousel .swiper-slide-inner .swiper-slide-contents {
  background-color: hwb(0deg 0% 100% / 40%);
  padding: 40px;
}

.custom-carousel .swiper-slide-image {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.7s ease;
}

.custom-carousel:hover .swiper-slide-image {
  transform: scale(1.03);
}

/* Navigation */
.custom-carousel .elementor-swiper-button {
  position: absolute;
  top: 50% !important;
  width: 48px !important;
  height: 48px !important;
  margin-top: -24px !important;
  z-index: 10;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
  color: #ffffff !important;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease !important;
}

.custom-carousel .elementor-swiper-button-prev {
  left: 16px !important;
}

.custom-carousel .elementor-swiper-button-next {
  right: 16px !important;
}

/* Arrow Icons */
.custom-carousel .elementor-swiper-button svg {
  width: 20px !important;
  height: 20px !important;
  fill: #ffffff !important;
  transition: transform 0.3s ease !important;
}

.custom-carousel .elementor-swiper-button:hover {
  background: #ffffff !important;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.6),
    0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.custom-carousel .elementor-swiper-button:hover svg {
  fill: #0f172a !important;
}

.custom-carousel .elementor-swiper-button-prev:hover svg {
  transform: translateX(-3px);
}

.custom-carousel .elementor-swiper-button-next:hover svg {
  transform: translateX(3px);
}

/* Pagination */
.custom-carousel .swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  background: rgba(255, 255, 255, 0.6) !important;
  border-radius: 20px !important;
  transition: all 0.3s ease !important;
  margin: 0 4px !important;
}

.custom-carousel .swiper-pagination-bullet-active {
  width: 28px !important;
  background: #ffffff !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
}

/* Mobile Breakpoint */
@media (max-width: 767px) {
  /* Full-width container breakout */
  .custom-carousel {
    --carousel-height: 380px;
    border-radius: 0;
  }

  .custom-carousel .swiper-slide {
    height: var(--carousel-height) !important;
  }

  /* Expanded content area taking more space */
  .custom-carousel .swiper-slide-inner .swiper-slide-contents {
    padding: 24px 20px;
  }

  /* Hide navigation arrows on mobile */
  .custom-carousel .elementor-swiper-button {
    display: none !important;
  }

  .custom-carousel .swiper-slide-contents {
    max-width: 100% !important;
  }

  /* Compact pagination position */
  .custom-carousel .swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !important;
    margin: 0 3px !important;
  }

  .custom-carousel .swiper-pagination-bullet-active {
    width: 20px !important;
  }
}

/* =========================================================
   CLIENT CARD
   ========================================================= */

/* Ensure the container hides the overflow when image grows */
.client-card {
    overflow: hidden;
}
/* Smooth transition for the image */
.client-card img {
    transition: transform 0.4s ease-in-out !important;
}
/* Scale image on container hover */
.client-card:hover img {
    transform: scale(1.1) !important;
}

/* Mobile Breakpoint */
@media (max-width: 767px) {
    .client-card a {
      display: flex !important;
      align-items: center;
      justify-content: center;
      width: 65px;
      height: 65px;
  }

  .client-card img {
    min-width: 65px;
    height: auto !important;
  }
}

/* =========================================================
   LARGE CLIENT CAROUSEL
   ========================================================= */

.custom-large-client-carousel .elementor-blockquote {
    border-left: none !important;
    padding-left: 0 !important;
    position: relative;
    padding: 20px 75px !important;
}

.custom-large-client-carousel .elementor-blockquote::before {
    content: "“";
    position: absolute;
    top: -15px;
    left: 0;
    font-size: 135px;
    line-height: 1;
    font-family: Georgia, serif;
    color: #d1d1d1;
    opacity: 0.35;
}

.custom-large-client-carousel .elementor-blockquote::after {
    content: "”";
    position: absolute;
    bottom: -35px;
    right: 0;
    font-size: 135px;
    line-height: 1;
    font-family: Georgia, serif;
    color: #d1d1d1;
    opacity: 0.35;
}

/* =========================================================
   LIEN CLAMP 
   ========================================================= */

.line-clamp-5 {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-6 {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-7 {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-8 {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================================
   CUSTOM BACK BUTTON 
   ========================================================= */
.custom-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 3px;

  font-size: 12px;
  background-color: #000;
  border: 1px solid #000;
  color: #fff;
  border-radius: 4px;
}
.custom-back-btn:hover {
  background-color: #fff;
  color: #000;
}