/* APADANA Egypt mobile layout hardening — 2026-09-30 */
html,
body {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

body {
  display: block !important;
  position: relative !important;
  inset: auto !important;
  transform: none !important;
}

header,
main,
footer,
.uni-hero,
.directory-hero,
.more,
.social-contact {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
}

.shell {
  width: min(1120px, calc(100% - 40px)) !important;
  max-width: 1120px !important;
  min-width: 0 !important;
  margin-inline: auto !important;
}

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

.detail-grid,
.detail-grid > *,
.atlas-facts,
.quick-grid,
.atlas-card-grid,
.spec-grid,
.atlas-index,
.compare-list {
  min-width: 0;
}

@media (max-width: 600px) {
  html,
  body {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .shell {
    width: calc(100% - 26px) !important;
    max-width: calc(100% - 26px) !important;
    margin-inline: 13px !important;
  }

  header nav.shell {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    margin-inline: 10px !important;
    gap: 8px !important;
  }

  header .brand {
    min-width: 0 !important;
    gap: 7px !important;
  }

  header .brand-logo-frame {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px !important;
  }

  header .brand > span:last-child {
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  header .lang-switch {
    font-size: 11px !important;
    padding: 5px 7px !important;
    white-space: nowrap !important;
  }

  header .nav-cta {
    font-size: 11px !important;
    line-height: 1.4 !important;
    padding: 7px 8px !important;
    white-space: nowrap !important;
  }

  .atlas-nav {
    width: 100% !important;
    max-width: 100% !important;
    overscroll-behavior-inline: contain;
  }

  .uni-hero,
  .directory-hero {
    padding: 42px 0 !important;
  }

  .uni-hero h1,
  .directory-hero h1 {
    font-size: clamp(29px, 9vw, 40px) !important;
    overflow-wrap: anywhere;
  }

  .uni-hero > div > p,
  .directory-hero p {
    font-size: 15px !important;
  }

  .atlas-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .atlas-fact {
    min-width: 0 !important;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .hero-actions a {
    width: 100% !important;
    text-align: center !important;
  }

  .detail-grid {
    width: calc(100% - 26px) !important;
    max-width: calc(100% - 26px) !important;
    margin-inline: 13px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    padding-top: 26px !important;
  }

  .detail-grid article,
  .detail-grid aside {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .detail-grid article > section {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 17px !important;
  }

  .table-scroll {
    width: 100% !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch;
  }

  .social-contact__inner {
    width: calc(100% - 26px) !important;
    max-width: calc(100% - 26px) !important;
    margin-inline: 13px !important;
  }
}

@media (max-width: 360px) {
  header .brand > span:last-child { display: none !important; }
  header nav.shell { gap: 6px !important; }
}
