/**
 * Mega Menu – Professional UI/UX
 * Overrides and enhances the hosting dropdown mega menu
 */

/* Container & layout */
nav.bootsnav ul.dropdown-menu.megamenu-content {
  padding: 0 !important;
  width: 870px !important;
  min-width: 870px;
  max-width: 870px;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow: hidden;
}

nav.bootsnav ul.dropdown-menu.megamenu-content > li {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
}

.megamenu-inner {
  display: flex;
  align-items: stretch;
  min-height: 280px;
}

/* Promo block (offer CTA) */
.megamenu-promo {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
  background: linear-gradient(165deg, #1c2334 0%, #252d42 100%);
  color: #fff;
  border-radius: 10px;
}

.megamenu-promo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(234, 16, 16, 0.2);
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 20px;
  color: #ea1010;
}

.megamenu-promo-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
  color: #fff;
  line-height: 1.3;
}

.megamenu-promo-text {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 20px;
  flex: 1;
}

.megamenu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: #ea1010;
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  border: 2px solid #ea1010;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  align-self: flex-start;
}

.megamenu-cta:hover {
  background: rgba(28, 35, 52, 0.4);
  color: #ea1010 !important;
  border-color: #ea1010;
  transform: translateY(-1px);
}

/* Vertical divider between promo and links */
.megamenu-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(222, 222, 222, 0.5), transparent);
  flex-shrink: 0;
}

/* Link columns grid */
.megamenu-grid {
  display: flex;
  flex: 1;
  padding: 0;
}

.megamenu-col {
  flex: 1;
  min-width: 0;
  padding: 0 28px;
  border-right: 1px solid #f0f0f0;
}

.megamenu-col:last-child {
  border-right: none;
}

.megamenu-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1c2334;
  margin: 10px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ea1010;
  display: flex;
  align-items: center;
  gap: 8px;
}

.megamenu-col-title i {
  color: #ea1010;
  font-size: 13px;
}

.megamenu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.megamenu-list li {
  margin: 0;
}

.megamenu-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: #222e3a;
  transition: color 0.15s ease, gap 0.15s ease;
  text-decoration: none;
  line-height: 1.4;
}

.megamenu-list li a i {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  color: #ea1010;
  font-size: 13px;
  transition: color 0.15s ease;
}

.megamenu-list li a:hover {
  color: #ea1010;
}

.megamenu-list li a:hover i {
  color: #ea1010;
}

/* Badge */
.megamenu-list .badge-link {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  background: #ea1010;
  color: #fff;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Responsive adjustments */
@media screen and (max-width: 1400px) {
  nav.bootsnav ul.dropdown-menu.megamenu-content {
    width: 90% !important;
    min-width: 720px;
  }

  .megamenu-promo {
    flex: 0 0 220px;
    padding: 24px 24px;
  }

  .megamenu-col {
    padding: 0 20px;
  }
}

@media screen and (max-width: 992px) {
  nav.bootsnav ul.dropdown-menu.megamenu-content {
    width: auto !important;
    min-width: 0;
    max-width: none;
  }
}
