*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'DM Sans',sans-serif;
    text-decoration: none;
}
html, body {
    max-width: 1440px;
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgb(241, 241, 241);
}
.container{
    display: grid;
    grid-template-columns: [c1] 24% [c2] 26% [c3] 26% [c4] 24% [c5];
    grid-template-rows: [r1] 40% [r2] 8% [r3] 22% [r4] 30% [r5];
    column-gap: 30px;
    row-gap: 30px;

    max-width: 1040px; /* Design width of the actual grid area */
    width: 100%;
    aspect-ratio: 16 / 11;
    margin: 0 auto; /* Center the grid inside the wrapper */
    padding: 20px; /* Optional */
}
.sm-box {
    grid-column-start: c2;
    grid-column-end: c4;
    grid-row-start: r1;
    grid-row-end: r2;

    background: hsl(256, 93%, 62%);
    border-radius: 10px;
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
.mm-box {
    grid-column-start: c2;
    grid-column-end: c3;
    grid-row-start: r2;
    grid-row-end: r4;

    background: white;
    border-radius: 10px;
    padding: 30px;
}
.cal-box {
    grid-column-start: c3;
    grid-column-end: c4;
    grid-row-start: r2;
    grid-row-end: r4;

    background: hsl(39, 100%, 71%);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.sched-box {
    grid-column-start: c4;
    grid-column-end: c5;
    grid-row-start: r1;
    grid-row-end: r4;

    background: hsl(260, 68%, 88%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 30px;
  }
.grow-box {
    grid-column-start: c3;
    grid-column-end: c5;
    grid-row-start: r4;
    grid-row-end: r5;

    background: hsl(256, 93%, 62%);
    border-radius: 10px;
    padding: 20px;
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;
}
.fast-box {
    grid-column-start: c2;
    grid-column-end: c3;
    grid-row-start: r4;
    grid-row-end: r5;

    background: white;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    gap: 10px;
  }
.create-box {
    grid-column-start: c1;
    grid-column-end: c2;
    grid-row-start: r1;
    grid-row-end: r3;

    background: hsl(31, 66%, 93%);
    border-radius: 10px;
    padding: 20px;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
}
.ai-box {
    grid-column-start: c1;
    grid-column-end: c2;
    grid-row-start: r3;
    grid-row-end: r5;

    background: hsl(39, 100%, 71%);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
  }
.sm-box, .mm-box, .cal-box, .sched-box, .grow-box, .fast-box, .create-box, .ai-box {
    overflow: hidden;
}

.ai-box img, .fast-box img, .create-box img, .grow-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sm-box img {
    width: 45%;
    height: 45%;
    object-fit: contain;
}

.mm-box img {
    height: 35%;
    object-fit: contain;
}

.sched-box img {
    width: 100%;
    height: 320px; /* control how tall the image is */
    object-fit: cover;
    object-position: left; /* adjust which part of the image shows */
    flex-shrink: 0; /* prevents it from shrinking in flexbox */
}

.sched-box h4, .sched-box p {
    padding-right: 25px;
}

.cal-box img {
    height: 80%;
    object-fit: contain;
}

.fast-box img {
    height: 35%;
    object-fit: contain;
}

.fast-box p {
    margin-bottom: 20px;
}

h1 {
    font-size: 60px;
    font-weight: 500;
    line-height: 1;
}

h3 {
    font-size: 35px;
    font-weight: 500;
    line-height: 1;
}

h4 {
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
}

p {
    font-size: 18px;
    font-weight: 400;
    line-height: 1; 
}

@media (max-width: 768px) {

    html, body {
        height: auto;
        display: block;
    }

    /* Scaled-down typography */
    h1 {
        font-size: 32px;
    }

    h3 {
        font-size: 26px;
    }

    h4 {
        font-size: 19px;
    }

    p {
        font-size: 16px;
    }

    /* Mobile container reset */
    .container {
        display: block; /* ✅ FULLY removes grid behavior */
        max-width: 310px;
        width: 100%;
        margin: 0 auto;
        padding: 20px;
    }

    /* Card reset */
    .sm-box,
    .sched-box,
    .cal-box,
    .grow-box,
    .fast-box,
    .create-box,
    .ai-box,
    .mm-box {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 20px;
        margin-bottom: 20px; /* To replace the grid's gap */
        gap: 10px;
    }

    /* Images should also flex with content */
    .sm-box img,
    .sched-box img,
    .cal-box img,
    .grow-box img,
    .fast-box img,
    .create-box img,
    .ai-box img,
    .mm-box img {
        width: 100%;
        height: auto;
        object-fit: contain; /* Or remove if you want full image height */
    }

    .sm-box {
        padding: 30px;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .mm-box {
        padding: 10px;
        align-items: flex-start;
    }

    .cal-box {
        padding: 10px;
        gap: 10px;
    }

    .sched-box {
        padding: 10px;
        gap: 20px;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .grow-box {
        padding: 30px;
        text-align: center;
    }

    .fast-box {
        padding: 30px;
        align-items: flex-start;
    }

    .create-box {
        padding: 20px;
        align-items: flex-start;
    }

    .ai-box {
        padding: 20px;
        align-items: flex-start;
    }

    .sm-box img {
        max-height: 20px;
    }

    .cal-box img {
        max-height: 100px;
    }

    .fast-box img {
        max-height: 50px;
    }

    .create-box img {
        max-height: 60px;
    }

    .ai-box img {
        max-height: 130px;
    }
}




  
  
  
  

