/* Shared alignment and responsive safeguards for all website pages. */
html, body { max-width: 100%; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
.page-wrapper, .page-wrapper main, .page-wrapper section { min-width: 0; }
.page-wrapper img, .page-wrapper svg, .page-wrapper video, .page-wrapper iframe, .page-wrapper object { max-width: 100%; }
.container, .product-page-container, .ae-page-container, .sge-info-container { padding-right: 15px; padding-left: 15px; }

/* Consistent inner-page banner alignment. */
.product-breadcrumb, .ae-page-breadcrumb, .sge-info-breadcrumb, .sge-cert-hero, .clients-hero { min-height: 300px; }
.clients-hero { display: flex; align-items: center; padding: 0; background: #202124; text-align: left; }
.clients-hero p, .clients-hero h1 { margin-right: 0; margin-left: 0; }

/* Equal-height grids and cards. */
.clients-logo-grid, .sge-info-grid, .machinery-grid, .product-gallery-grid, .ae-mission-grid, .ae-facility-cards, .sge-cert-grid { align-items: stretch; }
.client-logo-card, .sge-info-card, .machinery-card, .ae-mission-item, .ae-facility-card, .sge-cert-card { height: 100%; min-width: 0; }
.client-logo-card img, .sge-client-logo img, .sge-cert-card img { object-fit: contain; }
.machinery-image, .sge-info-card-image, .sge-info-gallery-image, .ae-facility-image, .sge-product-img img { object-fit: cover; }

/* Product and table overflow safeguards. */
.product-main-grid, .product-introduction-grid, .product-detail-area, .product-copy, .product-features-section > div { min-width: 0; }
.product-description-text, .product-highlight-item, .product-feature-item, .product-specification-cell, .product-sidebar-link { overflow-wrap: anywhere; }
.product-specification-scroll { max-width: 100%; -webkit-overflow-scrolling: touch; }
.product-specification-table { table-layout: fixed; }
.product-specification-heading:first-child, .product-specification-cell:first-child { width: 34%; }

/* Forms, contact information, and footer alignment. */
.ae-contact-grid { align-items: stretch; }
.ae-contact-details, .ae-contact-form-panel { height: 100%; min-width: 0; }
.ae-contact-value, .ae-contact-value-link, .footer-wrap .contact-info a, .footer-wrap .contact-info p { overflow-wrap: anywhere; word-break: break-word; }
.ae-contact-input, .ae-contact-select, .ae-contact-textarea, .ae-contact-file-input { min-width: 0; max-width: 100%; }
.footer-wrap .footer-top .row { align-items: stretch; }
.footer-wrap .footer-top [class*="col-"] { display: flex; }
.footer-wrap .footer-widget { width: 100%; }
.footer-wrap iframe { display: block; width: 100%; }
.footer-copyright-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; text-align: right; }

@media only screen and (min-width: 1200px) {
  .header-wrap.custom-header-wrap-new .menu { padding-right: 0; }
  .header-wrap.custom-header-wrap-new .navbar-brand { flex-basis: clamp(220px, 22vw, 350px); }
  .header-wrap.custom-header-wrap-new .menu > li > a { padding-right: 8px; padding-left: 8px; }
}

@media only screen and (max-width: 991px) {
  .product-breadcrumb, .ae-page-breadcrumb, .sge-info-breadcrumb, .sge-cert-hero, .clients-hero { min-height: 230px; }
  .footer-wrap .footer-top [class*="col-"] { display: block; }
}

@media only screen and (max-width: 767px) {
  .container, .product-page-container, .ae-page-container, .sge-info-container { width: 100%; max-width: 540px; padding-right: 18px; padding-left: 18px; }
  .clients-section, .sge-cert-section, .sge-info-section, .machinery-section, .ae-facilities, .product-main-section { padding-top: 55px; padding-bottom: 55px; }
  .product-specification-section, .product-features-section, .product-enquiry-section { margin-top: 45px; }
  .product-specification-table { min-width: 520px; table-layout: auto; }
  .product-specification-heading, .product-specification-cell { padding: 12px 14px; }
  .product-specification-heading:first-child, .product-specification-cell:first-child { width: auto; }
  .footer-copyright-left, .footer-copyright-right { justify-content: center; text-align: center; }
  .footer-copyright-right { margin-top: 10px; flex-wrap: wrap; }
}

@media only screen and (max-width: 575px) {
  .product-breadcrumb-title, .ae-page-breadcrumb-title, .sge-info-breadcrumb-title, .sge-cert-hero h1, .clients-hero h1 { font-size: 32px; line-height: 1.2; overflow-wrap: anywhere; }
  .clients-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-logo-card { min-height: 125px; }
  .ae-equipment-grid > div { grid-template-columns: 25px minmax(0, 1fr); }
  .ae-equipment-grid > div span { grid-column: 2; white-space: normal; }
}
