* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: Arial, sans-serif;
      background: #eaf6ff;
      display: flex;
      justify-content: center;
      padding: 0;
      min-height: 100vh;
    }

    .container {
      display: grid;
      gap: 10px;
      width: 100%;
      max-width: 1200px;
      background: white;
      border-radius: 10px;
      padding: 10px;
      min-height: 100vh; /* 👈 Full viewport height */

      /* Default mobile layout */
      grid-template-areas:
        "header"
        "banner"
        "left"
        "main"
        "right"
        "low"
        "footer";
      grid-template-rows: auto auto auto 1fr auto auto auto; /* 👈 Main fills remaining height */
    }

    .header   { grid-area: header; background: orange; }
    .banner   { grid-area: banner; background: red; }
    .left     { grid-area: left; background: green; }
    .main     { grid-area: main; background: dodgerblue; color: white; display: flex; align-items: center; justify-content: center; }
    .right    { grid-area: right; background: gold; }
    .low      { grid-area: low; background: limegreen; }
    .footer   { grid-area: footer; background: blue; color: white; }

    .container > div {
      padding: 20px;
      border-radius: 8px;
      font-weight: bold;
      text-align: center;
    }

    /* 📱 Mobile (up to 600px) */
    @media (max-width: 600px) {
      .container {
        grid-template-columns: 1fr;
        grid-template-areas:
          "header"
          "banner"
          "left"
          "main"
          "right"
          "low"
          "footer";
        grid-template-rows: auto auto auto 1fr auto auto auto;
      }
    }

    /* 💻 Tablet (601px–992px) */
    @media (min-width: 601px) and (max-width: 992px) {
      .container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto 1fr auto auto; /* 👈 main expands */
        grid-template-areas:
          "header header"
          "banner banner"
          "left main"
          "right low"
          "footer footer";
      }
    }

    /* 🖥️ Desktop (993px and above) */
    @media (min-width: 993px) {
      .container {
        grid-template-columns: 200px 1fr 200px;
        grid-template-rows: auto auto 1fr auto auto; /* 👈 main fills vertical space */
        grid-template-areas:
          "header header header"
          "left banner right"
          "left main right"
          "left low right"
          "footer footer footer";
        min-height: 100vh; /* 👈 Ensures full screen */
      }
    }