/* Services mega menu (primary navigation). Loaded after the picostrap bundle.
   Colours: navy #232a40 (navbar, hero), primary #4c4aff (buttons), hover #312fe4.
   The panel is a white card so it separates from the navy navbar and hero. */

.navbar .container {
  position: relative;
}

.vs-mega-panel {
  font-size: 1rem;
  padding: 0;
}

@media (min-width: 992px) {
  .navbar-nav .vs-mega {
    position: static;
  }
  .navbar-nav .vs-mega > .vs-mega-panel {
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0.6rem;
    border: 1px solid #dfe3ea;
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(10, 14, 30, 0.45);
    overflow: hidden;
  }
}

.vs-mega-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 992px) {
  .vs-mega-grid {
    grid-template-columns: minmax(330px, 0.95fr) minmax(0, 2.05fr);
  }
}

/* Left column: the three ways to work, on a light neutral. */
.vs-mega-offers {
  background: #f4f6fa;
  color: #1f2740;
  padding: 1.6rem 1.75rem 1.5rem;
  border-bottom: 1px solid #e6e9f0;
}

@media (min-width: 992px) {
  .vs-mega-offers {
    border-bottom: 0;
    border-right: 1px solid #e6e9f0;
  }
}

.vs-mega-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6c757d;
}

.vs-mega-heading a {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #4c4aff;
  white-space: nowrap;
}

.vs-mega-heading a:hover,
.vs-mega-heading a:focus {
  color: #312fe4;
}

.vs-mega-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 -0.9rem;
  padding: 0.85rem 0.9rem;
  border-radius: 8px;
  color: #1f2740;
  text-decoration: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.vs-mega-offer + .vs-mega-offer {
  margin-top: 0.2rem;
}

.vs-mega-offer:hover,
.vs-mega-offer:focus {
  background: #fff;
  color: #1f2740;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(31, 39, 64, 0.08);
}

.vs-mega-offer-body {
  display: block;
  min-width: 0;
}

.vs-mega-offer-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  color: #232a40;
}

.vs-mega-offer-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #5a6275;
}

.vs-mega-offer-arrow {
  flex: 0 0 auto;
  font-size: 2rem;
  line-height: 1;
  color: #4c4aff;
  transition: transform 0.15s ease, color 0.15s ease;
}

.vs-mega-offer:hover .vs-mega-offer-arrow,
.vs-mega-offer:focus .vs-mega-offer-arrow {
  transform: translateX(4px);
  color: #312fe4;
}

/* Right side: the service pages, grouped. */
.vs-mega-services {
  background: #fff;
  padding: 1.6rem 1.75rem 1.25rem;
}

.vs-mega-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 1.5rem;
}

@media (min-width: 576px) {
  .vs-mega-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .vs-mega-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.vs-mega-group {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #232a40;
}

.vs-mega-col a {
  display: block;
  padding: 0.38rem 0;
  font-size: 1rem;
  line-height: 1.35;
  color: #3b4256;
  text-decoration: none;
}

.vs-mega-col a:hover,
.vs-mega-col a:focus {
  color: #4c4aff;
  text-decoration: none;
}

/* Footer bar with the main call to action. */
.vs-mega-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  background: #fff;
  border-top: 1px solid #e6e9f0;
  padding: 0.9rem 1.75rem;
  font-size: 1.02rem;
  color: #3b4256;
}

.vs-mega-footer-btn {
  display: inline-block;
  background: #4c4aff;
  color: #fff;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: 0.3rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.vs-mega-footer-btn:hover,
.vs-mega-footer-btn:focus {
  background: #312fe4;
  color: #fff;
  text-decoration: none;
}

/* Collapsed navbar (below lg): the panel sits inline in the dark menu. */
@media (max-width: 991.98px) {
  .navbar-nav .vs-mega-panel {
    margin: 0.25rem 0 0.75rem;
    border: 0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
  }
  .vs-mega-offers {
    padding: 1.1rem 1.15rem 1rem;
  }
  .vs-mega-offer {
    margin: 0 -0.5rem;
    padding: 0.7rem 0.5rem;
  }
  .vs-mega-services {
    padding: 1.1rem 1.15rem 0.6rem;
  }
  .vs-mega-footer {
    padding: 0.85rem 1.15rem;
  }
}
