/* dispatchandservices.com layout fixes (nikita#90, 25.11.2026). Elementor breakpoints: tablet <=1024, mobile <=767. */

/* #2, #8: card grids never leave a lone card with an empty gap next to it.
   Truck cards (Our Fleet / Types of the Trucks): three in a row on desktop, two on tablet with the odd last card centred. */
@media (min-width: 1025px) {
  .e-con:has(> .truck-card) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .e-con:has(> .truck-card) > .truck-card { width: auto !important; max-width: none !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .e-con:has(> .truck-card) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .e-con:has(> .truck-card) > .truck-card { width: auto !important; max-width: none !important; }
  .e-con:has(> .truck-card) > .truck-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 10px) !important;
  }
}

/* #12: benefit tabs (No insurance headache ... Driver-first support): six tabs as 3 x 2 until they fit in one row. */
@media (min-width: 768px) {
  .hover-tabs .e-n-tabs-heading {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hover-tabs .e-n-tabs-heading > .e-n-tab-title { width: auto !important; justify-content: center; }
}
@media (min-width: 1600px) {
  .hover-tabs .e-n-tabs-heading { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* #3, #4: the cut-out people beside the About photo stay inside the photo frame,
   so they no longer hang over the white band and the dotted map below and above it. */
@media (min-width: 1025px) {
  .elementor-element-e038b13.elementor-absolute,
  .elementor-element-6c064f5.elementor-absolute {
    top: 0 !important;
    bottom: 0 !important;
    height: auto !important;
  }
  .elementor-element-e038b13 > .elementor-widget-container,
  .elementor-element-6c064f5 > .elementor-widget-container { height: 100%; }
  .elementor-element-e038b13 img,
  .elementor-element-6c064f5 img {
    height: 100% !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    object-position: left bottom;
  }
}

/* #5: "Home" in the footer menu column is a heading link; it now looks like the menu items next to it. */
.elementor-24 .elementor-element.elementor-element-207e607 .elementor-heading-title,
.elementor-24 .elementor-element.elementor-element-207e607 .elementor-heading-title a { color: #383838; }
.elementor-24 .elementor-element.elementor-element-207e607 .elementor-heading-title a:hover,
.elementor-24 .elementor-element.elementor-element-207e607 .elementor-heading-title a:focus-visible { color: #29A7B1; }

/* #16: long e-mail addresses in contact blocks wrap inside the screen. */
.elementor-icon-box-description a,
.elementor-icon-box-title a { overflow-wrap: anywhere; word-break: break-word; }

/* #22: phone and e-mail links in the contact blocks are at least 44 px tall for a finger. */
@media (max-width: 1024px) {
  #contact .elementor-icon-box-description a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
