/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
}

/* Desktop Layout */
.container {
    display: flex;
    width: 100%;
    height: 100%;
}

.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.sidenav {
    width: 250px;
    background-color: #333;
    color: #fff;
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 20px;
    overflow-y: scroll;
}

.sidenav h2 {
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #fff;
    padding-bottom: 5px;
}

.sidenav a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin: 10px 0;
}

.newsletter {
    margin-top: 20px;
}

.newsletter input[type="email"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
}

.newsletter input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #555;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
}

/* Mobile Layout */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidenav {
        width: 100%;
        height: auto;
        position: relative;
        padding: 10px;
        margin-top: 20px;
        position: sticky;
        top: 0;
    }

    .sidenav h2 {
        font-size: 16px;
        text-align: center;
    }

    .sidenav a {
        margin: 5px 0;
    }

    .newsletter {
        margin: 10px 0;
    }

    .newsletter input[type="email"], .newsletter input[type="submit"] {
        width: calc(100% - 20px);
        margin: 5px 10px;
    }

    .content {
        padding-bottom: 20px; /* Add some bottom padding for spacing */
    }
}
