* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.container{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: navy;
    color: white;
    padding: 20px;
    font-size: 24px;
}
.menu-icon {
    font-size: 30px;  /* Size the icon */
    background: none;
    border: none;
    color: white;     /* Make it visible */
    cursor: pointer;
    display: none;     /* for Desktop*/
}
.show-menu-toggle {
    display: flex;
    align-items: center;
    flex-direction: column;
}
nav {
    background-color: skyblue;
    display: flex;
    justify-content: center;
    padding: 10px;
}
nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
}
.footer-menu {
  display: grid;
  grid-auto-flow: column; /* Arranges items in a row */
  gap: 1px;
}

nav a:hover {
    background-color: royalblue;
}
main {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Article takes 2 parts, Aside takes 1 */
    gap: 20px;
    margin-top: 20px;
    grid-template-areas:"articles aside";
    align-items: start;
    /*grid-template-rows: auto;*/
    /*grid-auto-rows: min-content;*/
    grid-auto-flow: row;
}

article {
    background-color: lightblue;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin-bottom: 20px;
    display: block;
    width: 100%;
}
article header h2 {
    font-size: 30px;
}
article section h3 {
    font-size: 25px;
}
article section h4 {
    font-size: 15px;
    background-color: aliceblue;
    padding: 5px;
    }

    article footer {
        font-size: 15px;
        background-color: skyblue;
        padding: 5px;
    }

    /*aside section {*/
    /*    display: grid;*/
    /*    !*flex-direction: column;*!*/
    /*    !*align-items: center;*!*/
    /*    background-color: lightskyblue;*/
    /*    padding: 20px;*/
    /*    border-radius: 8px;*/
    /*    border-width: thick;*/
    /*    border-color: cadetblue;*/
    /*    margin-bottom: 20px;*/
    /*}*/

aside {
    display: flex;
    flex-direction: column;
    /*display: grid;*/
    /*grid-template-rows: repeat(3, 1fr); !* Creates 3 separate rows *!*/
    gap: 20px; /* Adds spacing between them */
}

aside section {
    display: flex;
    /*display: block;*/
    flex-direction: column;
    align-items: center; /* Centers images and text */
    background-color: lightblue;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
aside footer{
    background-color: aliceblue ;
    padding: 20px;

}
footer.main-footer {
    max-width: 1180px;
    margin: 0 auto;
    background-color: aliceblue;
    color: gray;
    text-align: center;
    padding: 5px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 45px;
}

@media screen and (max-width: 768px) {
    header {
        padding: 10px;
    }

    .menu-icon, .container {
        display: block; /* Hide on smaller screens */
    }

    nav, aside {
        display: none; /* Hide on smaller screens */
    }

    main {
        grid-template-columns: 1fr;
        margin-top: 60px;
    }
}
@media (min-width: 768px) {
    main {
        display: grid;
        grid-template-columns: 2fr 1fr; /* Articles take 75%, aside takes 25% */
        gap: 20px;
        grid-auto-rows: min-content;
        grid-auto-flow: row;
        /*grid-template-areas: "articles aside";;*/
    }
    aside {
        display: block; /* Show only on desktop */
        grid-area: aside;
        align-self: start;
        grid-column: 2 / span 1;
    }
    article {
        grid-column: 1/ span 1;
    }
}
