/* Mega menu full width from screen left edge */
.mega-dropdown {
  position: relative;
}

.mega-dropdown .dropdown-menu.mega-menu {
  width: 100vw;
  left: 102%;
  transform: translateX(-52%); /* Shift entire box a bit more left */
  top: 100%;
  border-top: 3px solid #56929D;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  position: absolute;
  padding: 0;
}


.mega-menu-inner {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  transform: translateX(-40px); /* Shift slightly left */
}


.mega-col {
  flex: 1;
  text-align: center;
  padding: 15px;
  border-right: 1px solid #ddd;
}

.mega-col.no-border {
  border-right: none;
}

.mega-col h6 {
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  margin: 0;
  color: #2b3a50;
}

/* Show mega menu on hover */
.mega-dropdown:hover .dropdown-menu.mega-menu {
  display: block;
}

@media (max-width: 768px) {
  .industry-section .carousel-btn {
    display: block;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    padding: 8px 10px;
    border-radius: 50%;
    font-size: 16px;
  }

  .industry-section .carousel-prev {
    left: 10px;
  }

  .industry-section .carousel-next {
    right: 10px;
  }

  .industry-section .carousel-wrapper {
    overflow: hidden;
    position: relative;
  }

  .industry-section .carousel-track {
    display: flex;
    transition: transform 0.4s ease;
  }

  .industry-section .carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
  }
}

/* Make arrows visible and correctly positioned on mobile only */
@media (max-width: 768px) {
  .industry-section .carousel-btn {
    display: block;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    padding: 8px 10px;
    border-radius: 50%;
    font-size: 16px;
  }

  .industry-section .carousel-prev {
    left: 10px;
  }

  .industry-section .carousel-next {
    right: 10px;
  }

  .industry-section .carousel-wrapper {
    overflow: hidden;
    position: relative;
  }

  .industry-section .carousel-track {
    display: flex;
    transition: transform 0.4s ease;
  }

  .industry-section .carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
  }
}
/* Make sure only one full item shows at a time on mobile */
@media (max-width: 768px) {
  .carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
  }

  .carousel-slide {
    min-width: 100% !important;
    box-sizing: border-box;
  }

  .carousel-btn {
    top: 40% !important;
    transform: translateY(-50%);
    position: absolute;
    z-index: 10;
  }

  .carousel-prev {
    left: 5px;
  }

  .carousel-next {
    right: 5px;
  }
}
