/* Figma desktop mega menu (1475:3795). Shared markup remains responsive below 1200px. */
@media (min-width: 1200px) {
  /* Keep the same panel available to keyboard users after the trigger receives focus. */
  #tlSolutions:focus-within .tl-mega {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
  }

  .tl-mega {
    max-height: calc(100dvh - var(--tl-mega-top));
    padding: 15px 24px 24px;
    border-top-color: #ecf4ff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .12);
  }

  .tl-mega-inner {
    width: min(100%, 1520px);
    max-width: 1520px;
    margin: 0 auto;
    padding: 0;
    grid-template-columns: minmax(0, 715px) minmax(280px, 350px) minmax(270px, 378px);
    gap: 24px;
    align-items: stretch;
  }

  .tl-mega-modules {
    min-width: 0;
  }

  .tl-mega-label {
    margin: 0 0 14px;
    padding-bottom: 14px;
    color: #343a40;
    font-size: 19px;
    font-weight: 600;
  }

  .tl-modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .tl-module-item {
    min-height: 70px;
    padding: 15px;
    gap: 8px;
    border-color: #ecf4ff;
    border-radius: 12px;
    color: #000;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
  }

  .tl-module-item:hover,
  .tl-module-item.active {
    border-color: #deebff;
    background: #fff;
    color: #1e40af;
    box-shadow: 0 4px 3.5px rgba(30, 64, 175, .08);
  }

  .tl-module-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .tl-module-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }

  .tl-mega-dark {
    min-height: 100%;
    max-width: none;
    padding: 15px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: #001655 url("../images/figma-desktop-menu/dark-menu-pattern.svg") right bottom / 100% auto no-repeat;
  }

  .tl-dark-section h4 {
    max-width: none;
    margin: 0 0 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
  }

  .tl-dark-section h4 span img {
    width: 24px;
    height: 24px;
  }

  .tl-dark-item {
    min-height: 40px;
    padding: 10px 8px 10px 14px;
    color: #fff;
    font-size: 13px;
    line-height: 20px;
  }

  .tl-dark-item span {
    display: block;
    width: 20px;
    height: 20px;
    color: transparent;
    background: url("../images/figma-desktop-menu/dark-navigation-arrow.svg") center / 20px 20px no-repeat;
  }

  .tl-dark-item:hover,
  .tl-dark-item:hover span {
    color: #fff;
    background-color: rgba(255, 255, 255, .08);
  }

  .tl-dark-divider {
    margin: 10px 0;
    background: rgba(255, 255, 255, .4);
  }

  .tl-mega-cards {
    gap: 14px;
  }

  .tl-ai-promo {
    display: block;
    min-height: 253px;
    background: #001655;
  }

  .tl-ai-promo-image {
    display: block;
    width: 100%;
    height: 253px;
    object-fit: cover;
  }

  .tl-ai-promo-copy,
  .tl-card-explore .tl-explore-mock,
  .tl-mobile-software-card {
    display: none;
  }

  .tl-card-explore {
    display: block;
    padding: 10px;
    border: 1px solid #f4eafc;
    border-radius: 18px;
    background: #001655;
  }

  .tl-desktop-software-card {
    display: flex;
    min-height: 331px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
  }

  .tl-desktop-software-card > img {
    display: block;
    width: min(293px, 100%);
    height: 209px;
    border-radius: 10px;
    object-fit: cover;
  }

  .tl-desktop-software-button {
    display: inline-flex;
    width: min(292px, 100%);
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 52px;
    background: #fff;
    color: #343a40;
    font-size: 16px;
    font-weight: 500;
  }

  .tl-desktop-software-button img {
    width: 24px;
    height: 24px;
  }

  .tl-mega-banner {
    width: min(calc(100% - 48px), 1520px);
    min-height: 118px;
    margin: 30px auto 0;
    padding: 30px 50px;
    gap: 30px;
    border-radius: 24px;
    background: #001655 url("../images/figma-desktop-menu/banner-pattern.svg") center / cover no-repeat;
  }

  .solhrsamvaadlogo {
    width: 154px;
    height: 60px;
    margin: 0;
    object-fit: contain;
  }

  .tl-banner-text {
    margin: 0;
    padding: 10px 30px;
    border-right: 1px solid rgba(255, 255, 255, .2);
    border-left: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 30px;
  }

  .tl-mega-banner .tl-banner-btn {
    width: auto;
    min-width: 205px;
    height: 52px;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 500;
  }
}

@media (max-width: 1199px) {
  .tl-desktop-software-card {
    display: none;
  }
}
