:root {
    --primary-color: rgba(49, 133, 252, 1);
    --secondary-color: rgba(84, 82, 97, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}

body {
    font-family: 'Inter' , sans-serif;
    font-size: 16px;
    background-color: rgb(249, 249, 249);
}

h2 {
    color: var(--primary-color);
    font-size: 26px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 50px;
    color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0px 4px 4px 0px rgba(227, 227, 227, 1);
    font-size: 18px;
}

.header-logo {
    font-size: 26px;
    font-weight: 600;
}

.nav-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 43px;
}

.nav-item {
    cursor: pointer;
    transition: 0.5s;
    position: relative;
    padding-bottom: 4px;

    &:hover {
        scale: 1.1;
        transition: 0.3s;
    }

    &::after {
        content: '';
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        background: linear-gradient(to right, rgb(230, 241, 255), rgb(166, 203, 255));
        width: 0;
        height: 2px;
        border-radius: 10px;
    }

    &:hover::after {
        width: 100%;
        transition: 0.3s;
    }
}

.item-1::before {
    content: '';
    background-image: url('./img/main.png');
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    margin-right: 10px;
}

.item-2::before {
    content: '';
    background-image: url('./img/profile.png');
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    margin-right: 10px;
}

.item-3::before {
    content: '';
    background-image: url('./img/msg.png');
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    margin-right: 10px;
}

.item-4::before {
    content: '';
    background-image: url('./img/setting.png');
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    margin-right: 10px;
}

.main-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 30px;
    color: var(--secondary-color);
    gap: 15px;
}

.bar {
    background-color: #fff;
    border-radius: 20px;
    padding: 14px 26px;
    box-shadow: 0px 4px 4px rgba(231, 231, 231, 1);
}

.user-block {
    padding: 24px 28px;
    box-shadow: 1px 1px 8px 5px rgba(231, 231, 231, 1);
    border-radius: 20px;
}

.user-name {
    font-size: 26px;
    font-weight: 500;
    display: flex;
    align-items: center;
    color: var(--secondary-color);

    &::before {
        content: '';
        background-image: url('./img/user-ava.png');
        background-size: contain;
        width: 85px;
        aspect-ratio: 1 / 1;
        align-items: center;
        border-radius: 50%;
        margin-right: 18px;
    }
}

.user-info {
    margin-top: 22px;
}

.news-popular {
    margin-top: 23px;
    display: flex;
    align-items: center;

    &::before {
        content: '';
        background-image: url('./img/news.png');
        background-size: contain;
        width: 34px;
        aspect-ratio: 1 / 1;
        margin-right: 7px;
    }
}

.news-item {
    margin-top: 25px;
}

.notification-main {
    margin-top: 23px;
    display: flex;
    align-items: center;

    &::before {
        content: '';
        background-image: url('./img/notification.png');
        background-size: contain;
        width: 34px;
        aspect-ratio: 1 / 1;
        margin-right: 7px;
    }
}

.news-post {
    border-radius: 10px;
    background-color: #fff;
    margin-bottom: 15px;
    padding: 23px 17px;
}

.messages-main {
    display: flex;
    align-items: center;
    margin-bottom: 28px;

    &::before {
        content: '';
        background-image: url('./img/messages.png');
        display: inline-block;
        background-size: contain;
        width: 34px;
        aspect-ratio: 1 / 1;
        margin-right: 8px;
    }
}

.message {

    &::before {
        content: '';
        background-image: url('./img/friend1.jpg');
        display: flex;
        background-size: cover;
        width: 60px;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        margin-right: 12px;
        float: left;
    }
}

hr {
    margin-top: 28px;
    margin-bottom: 20px;
}

.message-time {
    color: rgba(154, 154, 154, 1);
    font-size: 10px;
}

.message-2 {

    &::before {
        content: '';
        background-image: url('./img/friend2.png');
        display: flex;
        background-size: cover;
        width: 60px;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        margin-right: 12px;
        float: left;
    }
}

.friends {
    margin-bottom: 12px;
    display: flex;
    align-items: center;

    &::before {
        content: '';
        background-image: url('./img/friends.png');
        background-size: contain;
        display: flex;
        align-items: center;
        width: 36px;
        aspect-ratio: 1 / 1;
        margin-right: 12px;
    }
}

.friend {
    margin-top: 18px;
}

.friend-1 {
    display: flex;
    align-items: center;

    &::before {
        content: '';
        background-image: url('./img/friend1.jpg');
        background-size: cover;
        display: inline-block;
        width: 32px;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        margin-right: 14px;
    }
}

.friend-2 {
    display: flex;
    align-items: center;

    &::before {
        content: '';
        background-image: url('./img/friend2.png');
        background-size: cover;
        display: inline-block;
        width: 32px;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        margin-right: 14px;
    }
}

.friend-3 {
    display: flex;
    align-items: center;

    &::before {
        content: '';
        background-image: url('./img/friend3.jpg');
        background-size: cover;
        display: inline-block;
        width: 32px;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        margin-right: 14px;
    }
}

.tasks {
    display: flex;
    align-items: center;
    margin-top: 11px;

    &::before {
        content: '';
        background-image: url('./img/tasks.png');
        background-size: cover;
        display: inline-block;
        width: 32px;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        margin-right: 14px;
    }
}

.task {
    color: var(--primary-color);
    margin-top: 14px;
}