* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'inter', sans-serif;
}

:root {
/* Primary */
--Soft-orange: hsl(35, 77%, 62%);
--Soft-red: hsl(5, 85%, 63%);

/* Neutral */
--Off-white: hsl(36, 100%, 99%);
--Grayish-blue: hsl(233, 8%, 79%);
--Dark-grayish-blue: hsl(236, 13%, 42%);
--Very-dark-blue: hsl(240, 100%, 5%);
}

body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

p {
    font-size: 15px;
}

img {
    max-width: 100%;
}

ul {
    list-style: none;
}

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

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links li {
    color: var(--Dark-grayish-blue);
    cursor: pointer;
}

.nav-links li:hover {
    color: var(--Soft-red);
}

.menu, .close {
    display: none;
}

.main-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 3rem;
    max-height: 750px;
}

.main-blog {
    grid-column: 2 span;
    grid-row: 1 span;
}

.blog-info {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.blog-title {
    font-size: 3rem;
    color: var(--Very-dark-blue);
    width: 300px;
}

.blog-content {
    color: var(--Dark-grayish-blue);
    width: 350px;
    line-height: 1.5;
}

.blog-read {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-read button {
    background-color: var(--Soft-red);
    border: none;
    color: var(--Off-white);
    width: 200px;
    padding: 1rem 2rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 700;
}

.blog-read button:hover {
    background-color: var(--Very-dark-blue);
}

.new {
    grid-column: 1 span;
    grid-row: 1span;
    background-color: var(--Very-dark-blue);
}

.new-container {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.header {
    color: var(--Soft-orange);
    font-size: 2rem;
}

.new-blogs {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    gap: 2rem;
}

.new-blog {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.new-blog:after {
    content: "";
    margin-top: 2rem;
    display: flex;
    width: 100%;
    height: 1px;
    background-color: var(--Grayish-blue);
}

.new-blog:last-child:after {
    display: none;
}

.new-title {
    color: var(--Off-white);
    cursor: pointer;
}

.new-title:hover {
    color: var(--Soft-orange);
}

.new-content {
    color: var(--Grayish-blue);
}

.top-blogs {
    display: flex;
    grid-column: 3 span;
    grid-row: 1 span;
    gap: 1rem;
    justify-content: space-between;
}

.top-blog {
    display: flex;
    align-items: center;
    height: fit-content;
}

.top-title {
    cursor: pointer;
    color: var(--Very-dark-blue);
}

.top-title:hover {
    color: var(--Soft-red);
}

.top-blog img{
    width: 100px;
}

.top-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 1rem;
    height: 127px;
}

.num {
    color: var(--Soft-red);
    font-size: 2rem;
}

.top-content {
    color: var(--Dark-grayish-blue);
    font-size: 15px;
    line-height: 1.5;
}

@media screen and (max-width: 800px) {
    body {
        align-items: flex-start;
    }

    nav {
        padding-inline: 1rem;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0;
        right: 0;
        background-color: white;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
        width: 70%;
        height: 100vh;
    }

    .close {
        display: none;
        align-self: flex-end;
    }

    nav.menu-toggled .menu {
        display: none;
    }

    nav.menu-toggled .close {
        display: flex;
    }

    .menu {
        display: flex;
    }

    .main-container {
        padding-inline: 1rem;
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .top-blogs {
        display: flex;
        flex-direction: column;
    }

    .blog-info {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }

    .blog-read {
        gap: 2rem;
        width: 100%;
    }

    .blog-content, .blog-title {
        width: 100%;
    }
}

