/* Global responsive overrides for all frontend pages */

html {
  max-width: 100%;
  overflow-x: clip;
  overflow-y: scroll;
}

body {
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

.auto-container,
.container {
  width: 100%;
}

.main-header .main-box {
  gap: 16px;
}

.main-header .logo-box,
.main-header .nav-outer {
  min-width: 0;
}

.main-header .logo img,
.sticky-header .logo img {
  max-width: 300px;
  height: auto;
}

.widgets-box .info,
.widgets-box .info a,
.footer-text {
  overflow-wrap: anywhere;
  word-break: break-word;
}

table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Full Service Supplier — show full preview infographics without cropping */
.fss-panel-slide img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

@media (max-width: 1199.98px) {
  .main-header .header-lower .container,
  .main-header .sticky-header .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .main-header .main-box {
    flex-wrap: wrap;
  }

  .main-header .logo-box {
    flex: 0 0 auto;
  }

  .main-header .nav-outer {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
  }
}

@media (max-width: 991.98px) {
  .sec-title h1,
  .sec-title h2,
  h1,
  .h1 {
    font-size: clamp(30px, 7vw, 44px);
    line-height: 1.2;
  }

  .sec-title h3,
  h2,
  .h2 {
    font-size: clamp(24px, 6vw, 34px);
    line-height: 1.25;
  }

  .main-footer .widgets-box {
    padding-top: 48px;
    padding-bottom: 12px;
  }

  .main-footer .footer-logo img {
    width: 100% !important;
    max-width: 220px;
  }

  .main-footer .column {
    margin-bottom: 28px;
  }

  .main-footer .lower-box {
    padding: 18px 15px;
  }
}

@media (max-width: 767.98px) {
  .auto-container,
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .sec-title {
    margin-bottom: 28px;
  }

  /* Home (index) — avoid cramped tags and forced line breaks on small screens */
  .main.page-wraper .optimise-title br {
    display: none;
  }

  .main.page-wraper .optimise-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 10px;
    max-width: 100%;
    padding: 0 2px;
  }

  .main.page-wraper .optimise-tag {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    padding-left: 12px;
    padding-right: 12px;
  }

  .main.page-wraper .hero-palette {
    overflow: visible;
  }

  .main-header .logo img,
  .sticky-header .logo img {
    max-width: 150px;
  }

  .main-footer .footer-title {
    margin-bottom: 10px;
  }

  .main-footer .footer-list li {
    margin-bottom: 8px;
  }

  .main-footer .copyright-text {
    font-size: 13px;
    line-height: 1.5;
    padding-left: 8px;
    padding-right: 8px;
  }
}
