/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-areas:
        "header header"
        "nav nav"
        "main side"
        "footer footer";
    grid-template-columns: 70% 30%;
    grid-template-rows: auto auto 1fr auto;
    height: 100vh;
    gap: 10px;
}

.header {
    grid-area: header;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 20px;
}

.nav {
    grid-area: nav;
    display: flex;
    justify-content: flex-end; /* Align links to the right */
    background-color: #f4f4f4;
    padding: 10px 20px;
    gap: 15px;
}

.nav a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    border-radius: 3px;
    background-color: #ddd;
}

.nav a:hover {
    background-color: #bbb;
}

.main-content {
    grid-area: main;
    display: flex;
    flex-wrap: wrap; /* Allow boxes to wrap */
    gap: 10px;
    background-color: #f9f9f9;
    padding: 20px;
}

.content-box {
    flex: 1 1 calc(30% - 10px); /* Make each box 30% width, minus the gap */
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 5px;
}

.side-content {
    grid-area: side;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f1f1f1;
    padding: 20px;
}

.side-content div {
    background-color: #ddd;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.footer {
    grid-area: footer;
    display: flex;
    justify-content: space-around; /* Distribute items evenly */
    align-items: center;
    background-color: #333;
    color: white;
    padding: 10px;
}

.footer div {
    background-color: #555;
    padding: 5px 10px;
    border-radius: 3px;
}












@media (max-width: 900px) {
    .grid-container {
        grid-template-areas:
            "header"
            "nav"
            "main"
            "side"
            "footer";
        grid-template-columns: 1fr; /* Single column */
        grid-template-rows: auto auto auto auto auto;
    }

    .main-content {
        flex-direction: column; /* Stack content boxes vertically */
    }

    .content-box {
        flex: 1 1 100%; /* Full width for each box */
    }
}