:root{
    /* Primary Colors */
    --Softorange: hsl(35, 77%, 62%);
    --Softred: hsl(5, 85%, 63%);
    /* Neutral colors */
    --Off-white: hsl(36, 100%, 99%);
    --Grayish-blue: hsl(233, 8%, 79%);
    --Dark-rayish-blue: hsl(236, 13%, 42%);
    --Very-dark-blue: hsl(240, 100%, 5%);

}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter' , cursive ;
}

body{
    background-color: var(--Off-white);
}

/*--------------- MOBILE FIRST ----------------*/

/* header section */



header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem;

}

.nav__menu{
    opacity: 0;
    visibility: hidden;

    position: absolute;
    width: 60%;
    display: flex;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-color: var(--Off-white);
    padding: 2rem;
    box-shadow: 0 0 0 100vmax rgba(0,0,0,0.5);

}

.nav__menu.visible{
    opacity: 1;
    visibility: visible;
}

.button{
    border: none;
    background-color: transparent;
}


.close-button{
    border: none;
    background-color: transparent;
    position: absolute;
    top:1.5rem;
    right: 1.5rem;
}



.header__menu{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 8rem;
}

.header__menu li:hover{
    cursor: pointer;
    color: var(--Softred);
}



main{
    display: flex;
    flex-direction: column;
}

/* main section */
.main-section{
    margin: 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.main-section__image{
    width: 100%;
    height: 50%;
}

.main-section__image-desktop{
    display: none;
}
.main-section__image img{
    position: relative;
    width: 100%;
}

.main-section__info{
    color: var(--Very-dark-blue);
}

.main-section__info h1{
    font-size: 45px;
    font-weight: 800;
}

.main-section__info p {
    line-height: 1.7rem;
    font-size: 1rem;
    margin-top: 1.5rem;
}

.main-section__info button{
    margin-top: 1rem;
    background-color: var(--Softred);
    color: var(--Very-dark-blue);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 5px;
    cursor: pointer;
    width: 50%;
    border: none;
    padding: 1rem ;
}

.main-section__info button:hover{
    background-color: var(--Very-dark-blue);
    color: var(--Off-white) ;
}

/* right section */

.right-section{
    margin: 3rem 1rem;
    color: var(--Off-white);
    background-color: var(--Very-dark-blue);
    padding: 1.5rem;
    
}

.right-section h2{
    color: var(--Softorange);
    font-size:40px;
}

.right-section__article{
    padding: 2rem 0;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5rem;
    border-bottom: 1px solid var(--Off-white) ;
}

.right-section__article h3:hover{
    cursor: pointer;
    color: var(--Softorange);
}

.right-section__article:last-child{
    border: none;
    padding-bottom:0;
}

/* down-section */
.down-section{
    margin: 0 1rem;
}

.down-section__article img{
    position: relative;
    object-fit:cover;
    width: 30%; 
}

.down-section__article{
    display: flex;
    padding: 1.5rem 0; 
    /* height: 200px; */
}

.down-section__article__info{
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 300;
}

.down-section__article__info h2{
    color: var(--Softred);
    font-size: 40px;
}

.down-section__article__info h3:hover{
    color: var(--Softred);
    cursor: pointer;
}

/* footer */

footer{
    background-color: var(--Very-dark-blue);
    padding: 1rem;
    color: var(--Off-white);
    text-align: center;
    font-weight: 700;
}

footer a {
    color: var(--Softorange);
    text-decoration: none;

}

footer a:hover{
    color: var(--Softred);
}


/* for desktop */


@media (min-width: 1024px) {
 

    /* header */
    header{
        margin: 2rem 4rem;
        padding: 0 1rem;
    }

    .header__menu-mobile{
        display: none;
    }
    .button{
        display: none;
    }
    .nav__menu{
        opacity: 1;
        visibility: visible;

        display: flex;
        position: relative;
        padding: 0;
        margin: 0;
        box-shadow: none;
        width: auto
    }

    .header__menu{
        display:flex;
        flex-direction: row;
        gap: 3rem;
        list-style: none;
        color: var(--Very-dark-blue);
        margin: 0;

    }

    

    /* grid divide */
    main{
        display: grid;
        grid-template-columns: repeat(3,auto);
        grid-template-rows: repeat(2,auto);
        margin: 2rem 4rem;
    }
    /* main section */
    .main-section{
        grid-area: 1 / 1 / 2 / 3;
    }

    .main-section__image{
        display: none;
    }

    .main-section__image-desktop{
        display:block;
        width: 100%;

    }

    .main-section__image-desktop img{
        width: 100%; 
        height: 100%;
        height: auto;
       
    }

    .main-section__info{
        display: flex;
        width: 100%;
        gap:1rem;

    }

    .main-section-h3{
        width: 50%;
    }

    .main-section__info__p{
        width: 50%;
    }
    .main-section__info p{
        margin-top: 0;
        margin-bottom: 1rem;
    }
    .right-section{
        grid-area: 1 / 3 / 2 / 4;
        margin: 1rem;
    }
    .down-section{
        grid-area: 2 / 1 / 3 / 4;
        display: flex;
    }
    .menu-mobil{
        display: none;
    }

}
