main {
    padding: 0 20px;
    display: flex;
    gap: 20px;
}

nav {
    width: 220px;
    position: sticky;
    top: 10px;
    margin-bottom: auto;
}

nav>li {
    color: #e2e2e2;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

nav a {
    color: #f2f2f2;
    display: block;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
}

nav a:hover {
    background-color: rgb(41 41 41 / 1);
}

.content {
    flex: 1;
}

.content h2 {
    color: #f2f2f2;
    font-size: 30px;
    margin-bottom: 5px;
}

.content p {
    font-size: 16px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.big-box {
    display: flex;
    flex-wrap: wrap;
}

.items .img-box {
    border-radius: 8px;
    overflow: hidden;
}

.items .img-box::before {
    padding-top: 75%;
}

.items .text-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    margin-top: 2px;
    color: #9c9c9c;
    font-size: 14px;
    white-space: nowrap;
}

.items .text-box span {
    display: block;
    width: 62%;
    margin-right: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    color: #f2f2f2;
}

.items .text-box svg {
    width: 16px;
    color: #fff;
}

.more {
    border-radius: 6px;
    background: linear-gradient(144deg, #af40ff, #4f46e5);
    height: var(--button);
    padding: 0 33px;
    color: #fff;
    display: block;
    margin: 0 auto;
    font-size: 16px;
}

@media screen and (min-width: 770px) {
    .items {
        width: calc((100% - 60px) / 4);
        margin-right: 20px;
        margin-bottom: 20px;
    }

    .items:nth-of-type(4n) {
        margin-right: 0;
    }
}

@media screen and (max-width: 769px) {
    main {
        flex-direction: column;
        padding: 0 4px;
    }

    .content h2 {
        font-size: 22px;
    }

    .content p {
        font-size: 14px;
    }

    nav {
        width: 100%;
        overflow-x: auto;
        position: relative;
        margin: 0;
    }

    nav>li {
        display: none;
    }

    nav ul {
        flex-direction: row;
    }

    .items {
        width: calc((100% - 12px) / 2);
        margin-right: 12px;
        margin-bottom: 12px;
    }

    .items:nth-of-type(2n) {
        margin-right: 0;
    }
}