/* Responsive overrides */

html, body {
  overflow-x: hidden;
}

/* Ensure media never overflows */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Wrap long words/URLs in content blocks */
.page-wrapper, .container, .container-fluid, section, p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Phones */
@media (max-width: 575.98px) {
  /* Reduce large horizontal paddings on small screens */
  .px-10, .px-11, .px-12 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .ps-7, .pe-7, .ps-8, .pe-8, .ps-9, .pe-9 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Keep hero titles readable on small screens */
  .banner-section .fs-14,
  .banner-inner-section .fs-16 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  /* Compact header on mobile */
  header.header {
    padding: 12px 0 !important;
  }

  /* Prevent dropdown from causing width overflow */
  .dropdown-menu {
    max-width: 100vw;
    width: calc(100vw - 2rem);
  }

  /* Footer: stack and center content on small screens */
  footer.footer {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    text-align: center;
  }
  /* Keep the Information column left-aligned on mobile */
  footer.footer .col-xl-5 {
    text-align: left !important;
  }
  footer.footer .col-xl-5 .d-flex { align-items: flex-start !important; }
  footer.footer .col-xl-5,
  footer.footer .col-md-4,
  footer.footer .col-xl-2 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  footer.footer .ps-7 { padding-left: 0 !important; }
  footer.footer .footer-menu {
    align-items: center;
    gap: 0.25rem !important; /* tighten spacing between items */
    row-gap: 0.25rem !important;
  }
  footer.footer .footer-menu li a {
    display: inline-block;
  }
  /* Add slight top padding to the first menu item (Home) */
  footer.footer .footer-menu li:first-child a {
    padding-top: 0.25rem !important;
  }
  /* Reduce heavy utility spacings inside footer on mobile */
  footer.footer .pt-12 { padding-top: 0 !important; }
  footer.footer .mb-8 { margin-bottom: 0 !important; }
  footer.footer .mb-xl-0 { margin-bottom: 0 !important; }
  footer.footer .pt-12.ps-7 { padding-top: 0 !important; padding-left: 0 !important; }

  /* Minimize vertical gap between the two footer menu columns */
  footer.footer .row.align-items-sm-center { row-gap: 0.5rem !important; }

  /* Industries page: tighten row spacing in blog-detail on phones */
  .blog-detail .d-flex.flex-column.gap-7 { gap: 0.75rem !important; }
  .blog-detail .mb-12 { margin-bottom: 1rem !important; }
}

/* Tablets */
@media (max-width: 767.98px) {
  /* Gentle gutter adjustments for common large columns used in layout */
  .col-xl-8, .col-xl-6, .col-lg-8, .col-lg-6 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Better placement for scroll-to-top on small screens */
  #scrollToTopBtn {
    bottom: 16px;
    right: 16px;
  }

  /* Footer on small tablets */
  footer.footer .row {
    row-gap: 2rem;
  }
  footer.footer .footer-menu {
    align-items: center;
  }

  /* Industries page: moderate spacing on small tablets */
  .blog-detail .d-flex.flex-column.gap-7 { gap: 1rem !important; }
  .blog-detail .mb-12 { margin-bottom: 1.25rem !important; }
}

/* Ensure background videos cover properly (defensive) */
.banner-section video {
  object-fit: cover;
}


