/* === CUSTOM MEGA-MENU FIX FOR PRODUCTS === */

ul.mega-sub-menu.custom-mega {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding: 22px 36px;
  min-width: 720px;
  max-width: 1080px;
  background: #0f0f0f;
  border-radius: 14px;
  text-align: left;
}

ul.mega-sub-menu.custom-mega > li.mega-menu-column {
  flex: 1 1 0;
}

ul.mega-sub-menu.custom-mega .mega-title {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
}

ul.mega-sub-menu.custom-mega .mega-links li a {
  color: #ccc;
  padding: 6px 0;
  display: block;
  text-align: left;
}

ul.mega-sub-menu.custom-mega .mega-links li a:hover {
  color: #fff;
}

/* Control logo size everywhere */
.header-logo img,
.footer-logo img {
  max-height: 75px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Prevent logo from overflowing its container */
.header-logo,
.footer-logo {
  overflow: hidden;
}

.side-menu {
  padding-top: 40px;
}

.side-menu .logo img {
  width: 190px;
  height: auto;
  margin-bottom: 40px;
  flex-shrink: 0;
}

.side-menu .menu-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.side-menu .sidebar-menu {
  margin-top: -25px;
  margin-bottom: 20px;
}

.side-menu .ibt-btn-rounded {
  margin-top: 20px;
}

.side-menu::after {
  height: 150px;
}

.side-menu .logo {
  text-align: left;
  margin-left: -20px;
}
.hero-buttons {
  display: flex;
  gap: 50px;
}

.service-box7 .social-link3 span {
  white-space: nowrap;
  display: block;
}
.social-link3 img {
  max-width: 80px;
  height: auto;
  display: block;
}

.mega-container {
  position: absolute;
  top: 100%;
  left: 0%;
  transform: translateX(0);
  margin-left: -200px;

  width: 750px;
  background: #0d0d18;
  padding: 40px 55px;
  border-radius: 18px;

  display: none;
  z-index: 9999;
  animation: fadeDown 0.35s ease forwards;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* Fade-down animation */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Show on hover */
.mega-parent:hover .mega-container {
  display: block;
}

/* Tabs */
.mega-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  color: #ddd;
  margin-bottom: 25px;
  white-space: nowrap;
  gap: 40px;
}

.mega-tab.active {
  color: #fff !important;
}

.mega-tab,
.mega-content a {
  color: #ddd !important;
}

.mega-content a:hover {
  color: #fff !important;
}

/* Item layout */
.mega-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 50px; /* vertical & horizontal spacing */
  margin-top: 25px;
}

/* Robot image + text */
.mega-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mega-img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.mega-text a {
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
}

/* Hide inactive panels */
.mega-panel {
  display: none;
}

.mega-panel.active {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 200px;
}

.mega-tab,
.mega-text a {
  color: #e0e0e0 !important;
}

.mega-text a:hover {
  color: #ffffff !important;
}

/* Arrow hidden by default */
.mega-tab .arrow {
  opacity: 0;
  margin-right: 6px;
  color: #4de2c1; /* mint/green similar to template */
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: inline-block;
  transform: translateX(-5px);
}

/* On hover → show arrow & slide */
.mega-tab:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ACTIVE tab → arrow stays visible */
.mega-tab.active .arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Highlight text when active/hover */
.mega-tab:hover,
.mega-tab.active {
  color: #fff !important;
}

/* Arrow styling (already added previously) */
.mega-tab .arrow {
  opacity: 0;
  margin-right: 6px;
  color: #4de2c1;
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: inline-block;
  transform: translateX(-5px);
}

/* Hover → Arrow appears */
.mega-tab:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Active → Arrow stays */
.mega-tab.active .arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Scale animation */
.mega-tab {
  transition: transform 0.28s ease, color 0.25s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Hover scale effect */
.mega-tab:hover {
  transform: scale(1.05);
  color: #fff !important;
}

/* Active scale effect */
.mega-tab.active {
  transform: scale(1.05);
  color: #fff !important;
}
