*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:"inter";
}
@font-face {
    font-family:'inter';
    src: url(../fonts/static/Inter-Regular.ttf);
}

body {
    background-color: hsl(36, 100%, 99%);
    color: hsl(240, 100%, 5%);
    font-size: 16px;
    line-height: 1.5;
}

img {
    width: 100%;
    display: block;
}
ul {
    list-style-type: none;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    width: 90%;
    margin: auto;
    max-width: 1100px;
}

header {
    padding: 1.5rem 0;
    position: relative;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#logo img {
    width: 40px;
}
header nav ul {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 80px;
    right: 0;
    width: 70%;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    padding: 2rem;
    z-index: 999;
}
header nav ul li {
    margin: 1rem 0;
}

header nav ul li a {
    color: hsl(240, 100%, 5%);
    font-weight: 500;
}

.menu-btn {
    cursor: pointer;
    width: 35px;
}

#check {
    display: none;
}
#check:checked ~ nav ul {
    display: flex;
}
.grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.hero img {
    border-radius: 5px;
}
.hero-content {
    margin-top: 1rem;
}

.hero-left h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: hsl(240, 100%, 5%);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-right p {
    color: hsl(236, 13%, 42%);
    margin-bottom: 1.5rem;
}
.btn {
    background-color: hsl(5, 85%, 63%);
    color: white;
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    border: none;
    display: inline-block;
}
 #menu .categories-btn {
        color: black;
        border-radius: 30px;
        padding: 0.8rem 2rem;
    }

.btn:hover {
    background-color: hsl(240, 100%, 5%);
}
.news {
    background-color: hsl(240, 100%, 5%);
    color: white;
    padding: 1.5rem;
    border-radius: 5px;
}

.news h3 {
    color: hsl(35, 77%, 62%);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.news-item h4 a {
    color: white;
    font-size: 1rem;
    font-weight: 700;
}
news-item h4 a:hover {
    color: hsl(35, 77%, 62%);
}

.news-item p {
    color: hsl(236, 13%, 42%);
    margin: 0.5rem 0 1.5rem;
    font-size: 0.9rem;
}

.news hr {
    border: 0;
    border-top: 1px solid hsl(236, 13%, 42%);
    margin-bottom: 1.5rem;
}
.articles {
    margin: 4rem 0;
}

.article-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.card img {
    width: 100px;
    border-radius: 5px;
}

.card .text {
    flex: 1;
}
.card .number {
    color: hsl(233, 8%, 79%);
    font-size: 1.5rem;
    font-weight: 700;
}

.card h4 {
    font-weight: 800;
    color: hsl(240, 100%, 5%);
    margin: 0.3rem 0;
}

.card p {
    color: hsl(236, 13%, 42%);
    font-size: 0.9rem;
}
@media screen and (min-width: 768px) {

    .menu-btn {
        display: none;
    }

    header nav ul {
        display: flex !important;
        flex-direction: row;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
        width: auto;
    }

    header nav ul li {
        margin: 0 1rem;
    }

    header nav ul li a {
        color: hsl(236, 13%, 42%);
    }

    header nav ul li a:hover {
        color: hsl(5, 85%, 63%);
    }

    .grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
        align-items: start;
    }

    .hero-content {
        display: flex;
        justify-content: space-between;
        margin-top: 1.5rem;
        gap: 2rem;
    }

    .hero-left, .hero-right {
        width: 50%;
    }

    .hero-left h2 {
        font-size: 3.2rem;
    }

    .article-grid {
        flex-direction: row;
        justify-content: space-between;
    }

    .card img {
        width: 120px;
    }

    .card .text {
        padding-right: 1rem;
    }
}
