html {
  background: url('gradient.png') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100%;
}

body {
  margin: 2vw;
  min-height: calc(100vh - 4vw);
  box-sizing: border-box;
  display: flow-root;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 0 14px 4px rgba(90, 200, 240, 0.9);
}

/* ---------- Header: [logo + menu] on the left, banner on the right ---------- */
.header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;       /* banner is centered against the logo + menu block */
  justify-content: flex-start;   /* banner sits right beside the logo block */
  gap: 32px;
  padding: 20px 28px 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 0 0 auto;
}

.logo {
  display: block;
  align-self: flex-start;    /* don't stretch the SVG */
  height: 70px;
  width: auto;
  margin-right: -30px;       /* the logo file has blank space on its right edge; pull the banner closer */
}

/* ---------- Menu capsules (under the logo) ---------- */
.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* centered under the logo */
  gap: 14px;
}

.menu a {
  padding: 10px 24px;
  border-radius: 999px;
  background: linear-gradient(#1a78d6, #0ea5ea);
  color: #fff;
  font: 600 19px 'Trebuchet MS', 'Segoe UI', sans-serif;
  text-decoration: none;
  border: 1px solid #5ac8f0;
}

.menu a:hover { filter: brightness(1.1); }

/* ---------- Banner ---------- */
.banner {
  display: block;
  flex: 0 1 728px;
  min-width: 0;
  width: 728px;
  height: auto;              /* keeps the 728x90 proportions */
  margin: 0 auto;            /* centers the banner in the space to the right of the logo block */
}

/* ---------- Page content ---------- */
main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* three boxes side by side */
  gap: 20px;
  align-items: stretch;                    /* equal-height boxes */
  padding: 22px 28px 28px;   /* top padding = space between header and boxes */
}

/* ---------- Content boxes: dark-gray title bar + light-gray body ---------- */
.box {
  border-radius: 20px;
  overflow: hidden;          /* keeps the title bar inside the rounded corners */
  background: #fff;          /* white body */
  border: 1px solid #c9ced4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.box h2 {
  margin: 0;
  padding: 12px 24px;
  background: #eff4fa;       /* very light bluish title bar */
  border-bottom: 1px solid #dbe4ef;
  color: #0b2a4a;            /* navy, matches the logo */
  text-align: center;
  font: 700 24px 'Trebuchet MS', 'Segoe UI', sans-serif;
}

.box .content {
  padding: 20px 24px;
  color: #2b2f35;
  font: 18px/1.6 'Trebuchet MS', 'Segoe UI', sans-serif;
  min-height: 120px;
  flex: 1;
}

/* ---------- Footer capsule ---------- */
.footer {
  display: flex;
  justify-content: center;
  padding: 4px 28px 32px;
}

.footer > span {
  padding: 9px 24px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #1a78d6;   /* same blue as the top of the menu capsules */
  color: #1a78d6;
  font: 600 17px 'Trebuchet MS', 'Segoe UI', sans-serif;
}

.footer a {
  color: inherit;              /* link text keeps the capsule's blue */
  text-decoration: none;
}
.footer a:hover { text-decoration: underline; }

/* ---------- Tablets ---------- */
@media (max-width: 900px) {
  body {
    margin: 3vw;
    min-height: calc(100vh - 6vw);
    border-radius: 20px;
  }
  .header {
    padding: 14px 16px;
    gap: 14px;
  }
  .logo { height: 56px; margin-right: -24px; }
  .menu { gap: 8px; }
  .menu a { padding: 8px 16px; font-size: 17px; }
  main { padding: 16px 16px 20px; gap: 16px; }
  .footer { padding: 0 16px 24px; }
  .footer > span { padding: 7px 18px; font-size: 15px; }
  .box { border-radius: 16px; }
  .box h2 { padding: 10px 18px; font-size: 21px; }
  .box .content { padding: 16px 18px; min-height: 90px; font-size: 17px; }
}

/* ---------- Narrow screens: boxes stack in one column ---------- */
@media (max-width: 800px) {
  main { grid-template-columns: 1fr; }
}

/* ---------- Phones: stack, everything centered ---------- */
@media (max-width: 700px) {
  .header {
    flex-direction: column;
    gap: 16px;
  }
  .brand { align-items: center; }
  .logo { align-self: center; margin-right: 0; }
  .menu { justify-content: center; }
  .banner {
    flex: 0 0 auto;
    width: 728px;
    max-width: 100%;
  }
}

/* ---------- Small phones: slightly smaller capsules so all three fit ---------- */
@media (max-width: 480px) {
  .brand { max-width: 100%; }
  .logo { height: 48px; max-width: 100%; object-fit: contain; }
  .menu { gap: 6px; }
  .menu a { padding: 7px 13px; font-size: 15px; }
}

/* ---------- One big content box (Regarding / Connect pages) ---------- */
.box.wide { grid-column: 1 / -1; }
.box.wide .content { min-height: 320px; }
