/* Tools Carousel - wrapper section */
.tools-carousel-wrapper {
  margin: 0 !important;
  position: relative;
}

/* Tools Carousel - Color Tools section */
.tools-carousel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
  background: #000;
  padding: 20px 0 50px;
  min-height: 450px;
  position: relative;
}

/* Heading section */
.tools-carousel-heading {
  padding-left: 40px;
}

.tools-carousel-heading h2 {
  color: #f14950;
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
  font-size: 64px;
}

/* Items column */
.tools-carousel-items {
  overflow: hidden;
  min-width: 0;
  margin-top: 50px;
}

/* Swiper applied directly to track */
.tools-carousel-track {
  position: relative;
  overflow: visible;
  padding-top: 76px;
}

.tools-carousel-track .swiper-wrapper {
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
}

.tools-carousel-track .swiper-slide {
  width: 280px;
  height: 360px;
  flex-shrink: 0;
  display: flex;
}

/* Navigation arrows */

.tools-carousel-nav-container {
  position: absolute;
  top: 15px;
  right: 40px;
  display: flex;
  gap: 10px;
  z-index: 100;
}

.tools-carousel-nav {
  position: static !important;
  background: transparent;
  border: 2px solid #fff;
  width: auto !important;
  height: auto !important;
  min-width: 40px;
  min-height: 40px;
  max-width: unset !important;
  max-height: unset !important;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  line-height: 1;
  padding: 0;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin-top: 0 !important;
}

.tools-carousel-nav:hover {
  /* background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white; */
}

.tools-carousel-nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.tools-carousel-nav.swiper-button-prev::after,
.tools-carousel-nav.swiper-button-next::after {
  display: none !important;
}
.tools-carousel-prev , .tools-carousel-next {
  border: unset !important;
  /* display: contents !important; */
}
.tools-carousel-prev::before {
   content: " ";
  background-image: url('/eds/icons/round-black-prev-icon.svg');
  width: 22px;
  height: 13px;
  background-repeat: no-repeat;
  width: 44px;
  height: 44px;
  filter: invert(1) brightness(5);
}

.tools-carousel-next::before {
  content: " ";
  background-image: url('/eds/icons/round-black-next-icon.svg');
  width: 22px;
  height: 13px;
  background-repeat: no-repeat;
  width: 44px;
  height: 44px;
  filter: invert(1) brightness(5);
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
  background: transparent;
}

/* Pagination dots */
.tools-carousel-pagination {
  display: none;
}

/* Card slides */
.tools-carousel-slide {
  width: 280px;
  min-width: 280px;
  height: 370px;
  flex-shrink: 0;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #232426;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.tools-carousel-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Images - hidden by default, shown on hover */
.tools-carousel-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.tools-carousel-slide:hover img {
  opacity: 1;
}

/* Gradient overlay for text readability on hover */
.tools-carousel-slide::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.tools-carousel-slide:hover::before {
  opacity: 1;
}

/* Title text at top */
.tools-carousel-title {
  color: #eeeeef;
  font-size: 40px;
  font-weight: 800;
  line-height: 42px;
  letter-spacing: 0;
  padding: 20px 20px 20px 20px;
  position: relative;
  z-index: 2;
  margin: 0;
  transition: all 0.4s ease;
}

/* Arrow icon at bottom right */
.tools-carousel-slide::after {
  content: url('/eds/icons/redirection-arrow-white.svg');
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4px;
  color: white;
  opacity: 0.8;
  z-index: 2;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  background: transparent;
}

.tools-carousel-slide:hover::after {
  opacity: 1;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  background: #fcaf17;
  transform: translate(2px, -2px);
  color: black;
}

.tools-carousel-slide:hover::after {
  content:url('/eds/icons/redirection-arrow-black.svg') ;
}
/* Mobile responsive */
@media (width < 1000px) {
  .tools-carousel {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 60px 24px;
    min-height: auto;
  }

  .tools-carousel-heading {
    padding-left: 0;
    text-align: left;
  }

  .tools-carousel-heading h2 {
    font-size: 32px;
  }

  .tools-carousel-nav-container {
    top: 22px;
    right: 27px;
  }

  .tools-carousel-pagination {
    display: block;
    margin-top: 16px;
    text-align: left !important;
    line-height: 0;
    margin-bottom: 10px;
    padding-left: 28px;
  }

  .tools-carousel-pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    margin: 0 5px 0 0 !important;
    background: #4c4e52;
    opacity: 1;
    border-radius: 999px;
    transition: all 0.3s ease;
  }

  .tools-carousel-pagination .swiper-pagination-bullet-active {
    width: 20px;
    background: #fff;
  }

  .tools-carousel-track .swiper-slide,
  .tools-carousel-slide {
    min-width: 200px;
    width: 200px;
    height: 300px;
    background: transparent;
  }

  .tools-carousel-title {
    font-size: 32px !important;
    line-height: 34px !important;
    padding: 16px !important;
  }

  .tools-carousel-items {
    margin-top: 0;
  }
}

@media (width < 600px) {
  .tools-carousel {
    padding: 25px 0 50px 22px;
  }

  .tools-carousel-heading h2 {
    font-size: 2rem;
  }

  .tools-carousel-track .swiper-slide,
  .tools-carousel-slide {
    min-width: 220px;
    width: 220px;
    height: 300px;
  }

  .tools-carousel-title {
    font-size: 22px;
    line-height: 26px;
    padding: 14px;
  }

  .tools-carousel-nav {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .tools-carousel-slide img {
    opacity: 1;
  }
  .tools-carousel-slide::after{
    content: url('/eds/icons/redirection-arrow-black.svg');
    background: #fcaf17;
  }
}