@media (max-width: 991px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .sidebar {
        height: auto;
        flex-direction: row;
        align-items: center;
        padding: 1rem;
    }

    .profile {
        flex-direction: row;
        margin-bottom: 0;
        margin-right: 1rem;
    }

    .profile-img {
        max-width: 60px;
        max-width: 60px;
        margin-bottom: 1rem;
        margin-right: 1rem;
    }

    .nav {
        width: 100%;
        margin: 0;
        justify-content: center;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        text-size-adjust: 80%;
    }

    .nav-link {
        width: 100%;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .main-content {
        padding: 1rem;
    }
}