/* MBM Technology Limited — shared modern stylesheet */

:root {
  --mbm-navy: #000099;
  --mbm-ink: #10233d;
  --mbm-muted: #5e6d7e;
  --mbm-red: #ff0000;
  --mbm-white: #ffffff;
  --mbm-sky: #eaf4ff;
  --mbm-line: #dce5ee;
  --mbm-panel: rgba(255, 255, 255, 0.93);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  max-width: 1120px;
  margin: 32px auto;
  padding: 42px clamp(24px, 6vw, 72px);
  color: var(--mbm-ink) !important;
  background-color: #f4f8fb !important;
  background-image: url("images/backgrnd.gif") !important;
  background-repeat: repeat !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  border: 1px solid rgba(0, 0, 153, 0.15);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(16, 35, 61, 0.16);
}

/* Remove legacy layout constraints while keeping original markup intact */
body > div[align="right"] {
  width: 100%;
}

body table[width="90%"],
body table[width="100%"] {
  width: 100% !important;
}

body table {
  max-width: 100%;
}

/* Typography */
font[color="#000099"],
font[color="#000099"] * {
  color: var(--mbm-navy) !important;
}

b,
strong {
  color: var(--mbm-navy);
}

p {
  margin: 0 0 20px;
}

a {
  color: var(--mbm-navy) !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

a:hover,
a:focus {
  color: var(--mbm-red) !important;
}

/* Main logo area */
img[src*="4triangles.gif"] {
  padding: 10px;
  background: var(--mbm-white);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 35, 61, 0.15);
}

img[src*="mbmwords.gif"] {
  margin-top: 10px;
}

center > b > font[size="+2"],
center b font[size="+2"] {
  display: inline-block;
  margin: 6px 0;
  font-size: clamp(1.7rem, 4vw, 2.7rem) !important;
  letter-spacing: -0.04em;
}

/* Separators */
hr {
  height: 1px;
  margin: 38px 0 !important;
  border: 0;
  background: linear-gradient(90deg, var(--mbm-navy), var(--mbm-line), transparent);
}

/* Service / capability links */
img[src*="bullet.gif"] {
  display: block;
  padding: 4px;
  background: var(--mbm-sky);
  border-radius: 50%;
}

td:has(> img[src*="bullet.gif"]) {
  width: 45px;
  vertical-align: middle;
}

td:has(> img[src*="bullet.gif"]) + td {
  padding: 12px 16px 12px 6px;
  font-weight: bold;
  vertical-align: middle;
}

td:has(> img[src*="bullet.gif"]) + td a {
  display: inline-block;
}

/* Bottom navigation */
body table td[width="20%"] {
  padding: 8px 3px;
}

body table td[width="20%"] a {
  display: block;
  padding: 10px 6px;
  font-size: 0.88rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
}

body table td[width="20%"] a:hover,
body table td[width="20%"] a:focus {
  background: var(--mbm-sky);
}

/* Copyright */
font[color="#FF0000"],
font[color="#FF0000"] * {
  color: var(--mbm-red) !important;
}

/* Mobile */
@media (max-width: 720px) {
  body {
    margin: 9px;
    padding: 28px 20px;
    border-radius: 16px;
  }

  body table[width="90%"] {
    width: 100% !important;
  }

  body table td[width="20%"] {
    display: inline-block;
    width: 49% !important;
  }

  body table td[width="20%"]:last-of-type {
    width: 100% !important;
  }

  td:has(> img[src*="bullet.gif"]) + td {
    padding-right: 4px;
  }
}
