/* Site-wide UI/UX: readable type, compact mobile heroes, no oversized media */

html { -webkit-text-size-adjust: 100%; }

img, video, svg, iframe {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, .hero-title, .section-title, .section-title1 h2 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table-responsive,
.nx-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* —— Tablet + phone (same mobile header) —— */
@media (max-width: 991px) {
  body {
    overflow-x: hidden;
  }

  .about-hero,
  .erp-hero,
  .ai-hero,
  .app-hero,
  .contact-hero,
  .enterprise-hero,
  .hro-hero,
  .sap-hero,
  .web-hero,
  .design-hero,
  .fusion-hero,
  .ebs-hero,
  .ps-hero,
  .policy-hero,
  .hero-section,
  .nx-article-hero {
    padding: 28px 0 32px !important;
  }

  .about-hero h1,
  .erp-hero h1,
  .ai-hero h1,
  .app-hero h1,
  .contact-hero h1,
  .enterprise-hero h1,
  .hro-hero h1,
  .sap-hero h1,
  .web-hero h1,
  .design-hero h1,
  .fusion-hero h1,
  .ebs-hero h1,
  .ps-hero h1,
  .policy-hero h1,
  .nx-article-hero h1 {
    font-size: clamp(1.5rem, 6.6vw, 2.05rem) !important;
    line-height: 1.22 !important;
    margin-bottom: 0.7rem !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: none !important;
  }
  .hero-section .hero-title,
  .hero-title {
    font-size: clamp(1.5rem, 6.6vw, 2.05rem) !important;
    line-height: 1.22 !important;
    margin-bottom: 0.7rem !important;
  }

  .hero-subtitle,
  .about-hero p,
  .erp-hero p,
  .ai-hero p,
  .app-hero p,
  .contact-hero p,
  .enterprise-hero p,
  .hro-hero p,
  .sap-hero p,
  .web-hero p,
  .design-hero p,
  .fusion-hero p,
  .ebs-hero p,
  .ps-hero p,
  .policy-hero p {
    font-size: 0.98rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1rem !important;
    max-width: none !important;
  }

  .hero-stats {
    gap: 10px !important;
    margin-top: 1.1rem !important;
    justify-content: space-between !important;
  }
  .hero-stats .stat-item,
  .hero-stats > div {
    min-width: calc(50% - 10px) !important;
    flex: 1 1 calc(50% - 10px);
  }
  .hero-stats .stat-number,
  .stat-number {
    font-size: 1.55rem !important;
  }

  [class*="-hero-visual"] {
    height: 168px !important;
    max-height: 168px !important;
    padding: 10px !important;
    margin-top: 1rem !important;
  }
  [class*="-hero-visual"] img,
  [class*="-hero-visual"] svg {
    max-height: 148px !important;
    width: auto !important;
    margin: 0 auto;
  }

  .hero-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .hero-buttons .btn,
  .hero-buttons a {
    width: 100%;
    text-align: center;
    min-height: 44px;
  }

  h2[style*="font-size: 2.5rem"],
  h2[style*="font-size: 2rem"],
  h3[style*="font-size: 2.5rem"],
  h3[style*="font-size: 1.8rem"],
  .section-title h2,
  .section-title1 h2 {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.85rem !important;
  }

  .company-overview,
  .mission-vision,
  .story-section,
  .values-section,
  .contact-form-area,
  [style*="padding: 100px 0"] {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .pt-100, .ptb-100, .pb-100 {
    padding-top: 32px !important;
  }
  .ptb-100, .pb-100 {
    padding-bottom: 32px !important;
  }
  .footer-top.pt-100 {
    padding-top: 40px !important;
    padding-bottom: 24px !important;
  }

  .nx-panel,
  .contact-info1,
  .contact-form,
  .search-container,
  .job-card,
  .blog-card,
  .value-card,
  .team-card {
    padding: 1.15rem !important;
    border-radius: 14px !important;
  }

  .about-play img,
  .choose-img img,
  .case-study-item img,
  .blog-item img,
  .services-item a img,
  .build-play-img img {
    display: block;
    width: 100%;
    height: 200px;
    max-height: 200px;
    object-fit: cover;
    object-position: center;
  }

  .service-shape,
  .service-shape img {
    display: none !important;
  }

  .go-top,
  .go-top.active {
    top: auto !important;
    bottom: 18px !important;
    right: 12px !important;
    transform: none !important;
    width: 44px;
    height: 44px;
    line-height: 44px;
    z-index: 40;
  }

  input, select, textarea {
    font-size: 16px !important;
  }

  .btn, .default-btn, .learn-btn {
    min-height: 44px;
  }

  .container,
  .container-fluid {
    padding-left: 14px;
    padding-right: 14px;
  }
  .login-container {
    margin-top: 12px !important;
  }
  .form-title {
    font-size: 1.35rem !important;
  }
  .footer-area,
  .footer-area .pl-2,
  .footer-area .col-md-6,
  .footer-area .col-lg-6,
  .footer-area h3,
  .footer-area h4,
  .footer-area p {
    text-align: left !important;
  }
  .footer-area .social-icons {
    justify-content: flex-start !important;
    width: 100%;
  }
}

.banner_second {
  padding: 22px 16px;
  background: linear-gradient(135deg, #052c65, #0d6efd);
  color: #fff;
}
.banner_second h3 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
}

.nx-maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  padding: 0 0 8px;
  box-sizing: border-box;
}
.nx-maps__card {
  min-width: 0;
  background: #f4f7fb;
  overflow: hidden;
}
.nx-maps__label {
  margin: 0;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #052c65;
  background: #fff;
  border-bottom: 1px solid #e8eef6;
}
.nx-maps__frame {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}
.nx-maps__frame iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  border: 0;
  display: block;
}

@media (max-width: 991px) {
  .nx-maps {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 14px 20px;
  }
  .nx-maps__card {
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  }
  .nx-maps__frame {
    height: 260px;
  }
}

@media (max-width: 575px) {
  .about-hero,
  .erp-hero,
  .ai-hero,
  .app-hero,
  .contact-hero,
  .enterprise-hero,
  .hro-hero,
  .sap-hero,
  .web-hero,
  .design-hero,
  .fusion-hero,
  .ebs-hero,
  .ps-hero,
  .policy-hero,
  .hero-section,
  .nx-article-hero {
    padding: 22px 0 24px !important;
  }

  [class*="-hero-visual"] {
    display: none !important;
  }

  .hero-stats .stat-label {
    font-size: 0.7rem !important;
    letter-spacing: 0.04em !important;
  }
}

/* Dark mobile chrome */
.theme-dark .nx-mbar,
.theme-dark .navbar-area.sticky-nav {
  background: #1a1a1a !important;
}
.theme-dark .nx-mbar__burger {
  background: #0d6efd;
}

.footer-area .social-icons {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start !important;
  gap: 10px;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  list-style: none;
  width: 100%;
  text-align: left !important;
}
.footer-area .social-icons li {
  display: block;
  margin: 0 !important;
  padding: 0;
}
.footer-area .social-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 20px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
.footer-area .social-icon.facebook { background: #1877f2 !important; }
.footer-area .social-icon.twitter { background: #0f1419 !important; }
.footer-area .social-icon.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 70%, #285AEB 100%) !important;
}
.footer-area .social-icon.linkedin { background: #0a66c2 !important; }
