@font-face {
    font-family: 'Inter';
    src: url(fonts/inter-v18-latin-800.woff2);
    font-weight: 800;
}

@font-face {
    font-family: 'Inter';
    src: url(fonts/inter-v18-latin-700.woff2);
    font-weight: 700;
}

@font-face {
    font-family: 'Inter';
    src: url(fonts/inter-v18-latin-regular.woff2);
    font-weight: 400;
}

:root {
    --Softorange: hsl(35, 77%, 62%);
    --Softred: hsl(5, 85%, 63%);
    --ff-white: hsl(36, 100%, 99%);
    --Grayishblue: hsl(233, 8%, 79%);
    --Darkgrayishblue: hsl(236, 13%, 42%);
    --Verydarkblue: hsl(240, 100%, 5%);
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

body {
    font-family: 'Inter';
    margin: 0;
    padding-block: 1rem;
    color: var(--Verydarkblue);
    background-color:var(--ff-white)
}

main {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.wrapper{
    max-width: 1130px;
    margin-inline: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

ul {
    display: flex;
    gap: 40px;
    list-style: none;

    a {
        text-decoration: none;
        color: var(--Darkgrayishblue);

        &:hover {
            color: var(--Softorange);
        }
    }
}

.openiconMenu {
    display: none;
}

.new-black {
    background: var(--Verydarkblue);
    color: #fff;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    a {
        color: inherit;
        text-decoration: none;
    }

    a:not(a:last-of-type) {
        border-bottom: 1px solid var(--Darkgrayishblue);
        padding-bottom: 1rem;
    }

    a:hover h3 {
        color: var(--Softorange);
    }

    & h2 {
        color: var(--Softorange);
        margin: 0;
    }

    h3 {
        margin: 0;
    }
}

h1 {
    font-size: clamp(2.525rem, 2.1377rem + 1.6526vw, 3.625rem);
    font-weight: 800;
    margin: 0;
    color: var(--Verydarkblue);
}

.Readmore-area {
    display: flex;
    flex-direction: column;

    & p {
        font-size: 0.9;
        line-height: 1.8rem;
        color: var(--Darkgrayishblue);
    }

}

.Readmore-area a {
    text-decoration: none;
    letter-spacing: 3px;
    background-color: var(--Softred);
    color: var(--Verydarkblue);
    width: fit-content;
    padding: 1rem 2rem;
    font-weight: 700;

    &:hover {
        background-color: #000;
        color: #fff;
    }
}

.news {
    display: grid;
    gap: 1.5rem;

    img {
        width: 100px;
    }

    a {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
        text-decoration: none;
    }

    a:hover h3 {
        color: var(--Softred);
    }

    h2 {
        color: var(--Softred);
        margin: 0;
        font-size: 2rem;
    }

    h3 {
        font-weight: 800;
        margin: 0;
        margin-block: 1rem;
    }

    p {
        color: var(--Darkgrayishblue);
        margin: 0;
    }


}


.closeiconMenu {
    display: none;
}

@media (width < 700px) {
    nav ul li a {
        color: #000;
    }

    ul {
        display: flex;
        flex-direction: column;
    }

    .openiconMenu {
        display: block;
    }

    .header {
        padding-inline: 1.5rem;
    }

    .grid-layout {
        padding-inline: 1.5rem;
    }

    .new-black{
        margin-block: 4rem;
    }

    .closeiconMenu {
        display: block;
        width: 30px;
        align-self: flex-end;
        margin-block-end: 4rem;
    }

    .sidebar {
        position: fixed;
        width: 60%;
        background-color: #fff;
        top: 0;
        right: 0;
        height: 200%;
        transform: translateX(100%);
        transition: 200ms;
        padding-inline-end: 1.5rem;
        z-index: 1000;

    }

    .sidebar.show {
        transform: translateX(0);
    }

}

@media(width >=700px) {
    .header {
        padding-inline: 1.5rem;
    }

    .grid-layout {
        padding-inline: 1.5rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        align-items: flex-start;
        gap: 2rem;
    }

    .hero-section {
        grid-column: span 2;
        display: grid;
        gap: 1rem;
    }

    .hero-section>div {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media(width >=1130px) {
    .grid-layout{
        grid-template-columns: repeat(3, 1fr);
        row-gap: 3rem;
    }

    .news{
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        grid-column: span 3;
    }
}


.overlay{
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(15, 17, 33, 0.5);
    width: 100%;
    height: 100%;
    display: none;
    z-index: 999;
}
.overlay.show{
    display: block;
}


footer{
    text-align: center;
    padding-inline: 1.5rem;
    padding-block: 6rem 2rem;

    a{
        font-weight: 700;
        text-decoration: none;

        &:hover{
            text-decoration: underline;
        }
    }
}
