@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
   --Soft-orange: hsl(35, 77%, 62%);
    --Soft-red: hsl(5, 85%, 63%);
    --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%) ;
}

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

body {
    font-family: "Inter", sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
}

nav ul li {
    padding: 1rem 2rem;
    list-style-type: none;
}

nav ul li:hover {
    color: var(--Soft-orange);
    cursor: pointer;
}

.hamburger {
    display: none;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* grid-template-rows: 150px 150px 250px 200px; */
    grid-template-rows: auto;
    gap: 30px 20px;
}

.hero-image {
    
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.hero-image img {
    height: 100%;
    width: 100%;
}

.side-menu {
    color: var(--Off-white);
    background-color: var(--Very-dark-blue);
    grid-column: 3 / 4;
    grid-row: 1 / 4;
    padding: 2rem;
}

.side-menu h2 {
    color: var(--Soft-orange);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.side-menu h4 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.side-menu p {
    margin-bottom: 2rem;
    color: var(--Grayish-blue);
}

hr {
    border: none;           
  height: 1px;           
  background-color: var(--Grayish-blue); 
  margin-bottom: 2rem;
}
.news-text {
    font-size: 3rem;
    font-weight: 900;
   
}

.news-text h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
}


.info-text p {
    line-height: 1.8;
    color: var(--Dark-grayish-blue);
    margin-bottom: 2rem;
}

.info-text button {
    background-color: var(--Soft-red);
    border: none;
    padding: 1rem 2rem;
 font-family: "Inter", sans-serif;
 text-transform: uppercase;
 font-weight: 900;
 letter-spacing: 2px;
}

.card {
    
    display: flex;

}

.card-details {
    padding-left: 2rem;
}

.card-details h2 {
    color: var(--Soft-red);
    font-weight: 900;
    margin-bottom: 1rem;
}

.card-details h4 {
    font-weight: 900;
    margin-bottom: 1rem;
}

.card-details p {
    color: var(--Dark-grayish-blue);
}

.card img {
    max-width: 25%;
}

@media only screen and (max-width: 815px) {

    .hamburger {
        display: block;

    }

    .lines {
        height: 5px ;
        width: 30px;
        background-color: var(--Very-dark-blue);
        margin: 5px;
        border-radius: 20px;
    }

    nav {
        position: absolute;
        top: 100px;
        background-color: var(--Off-white);
        left: 0;
        right: 0;
        height: 0;
       
        width: 100vw;
        overflow: hidden;
        
    }   

    nav ul {
        display: block;
        margin: 5px auto;
        text-align: center;
        max-width: fit-content;
        opacity: 0;
    }

    nav.active {
        height: 300px;
    }

    nav.active ul {
        opacity: 1;
    }


    
  .grid {
    display: grid;
    grid-template-columns:  1fr;
    /* grid-template-rows: 150px 150px 250px 200px; */
    grid-template-rows: auto;
    gap: 30px 20px;
}

.hero-image {
    grid-column: 1 / 2;
    grid-row: 1 / 2; 
   
}


.side-menu {
  
    grid-column: 1 / 2;
    grid-row: 4 / 5;
   
}
.info-text {
    grid-template-columns: 1 / 2;
    grid-template-columns: 3 / 4;
}

}