/**
 * s41 customer-test UI fixes (landiskadwell.webetter.co)
 * Comment_20261111.docx — does NOT affect s30 production.
 * 1) Dropdown long labels wrapping to next row
 * 2) Home "OUR SERVICES" cards misaligned
 */

/* ---- 1) Nav dropdown: keep long labels on one row ---- */
@media (min-width: 992px) {
  .navbar-nav > li.dropdown > ul.dropdown-menu-igt {
    min-width: 380px;
    width: max-content;
    max-width: 520px;
  }

  ul.dropdown-menu-igt > li {
    white-space: nowrap;
  }

  /* bullet (:before) + link stay on the same row */
  ul.dropdown-menu-igt > li:before {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
  }

  ul.dropdown-menu-igt > li > a,
  ul.dropdown-menu-igt > li.dropdown-submenu > a {
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    max-width: none;
  }
}

/* ---- 2) OUR SERVICES: equal-height cards, aligned titles / See more ---- */
@media (min-width: 992px) {
  .sections--services > .container > .row {
    display: flex;
    flex-wrap: wrap;
  }

  .sections--services > .container > .row > [class*="col-"] {
    display: flex;
  }

  .sections--services .fes4-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
  }

  /* titles (1–2 lines) share the same block height so body text starts aligned.
     Icon is absolute bottom:5px — keep h3 bottom-aligned so short titles
     stay next to the icon instead of floating to the top of the tall box. */
  .sections--services .fes4-title-cont {
    min-height: 72px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .sections--services .fes4-title-cont h3 {
    padding-top: 0;
    padding-bottom: 5px;
  }

  .sections--services .fes4-box > p {
    flex: 1 1 auto;
    margin-bottom: 12px;
  }

  .sections--services .fes4-box > a {
    margin-top: auto;
    align-self: flex-end;
  }
}
