@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;700&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    
    --darkBlue: hsl(233, 26%, 24%);
    --limeGreen: hsl(136, 65%, 51%);
    --brightCyan: hsl(192, 70%, 51%);
    --grayishBlue: hsl(233, 8%, 62%);
    --lightGrayishBlue: hsl(220, 16%, 96%);
    --veryLightGray: hsl(0, 0%, 98%);
    --white: hsl(0, 0%, 100%);
}

body {
    position: relative;
    overflow-x:hidden ;
    width: 100vw;
    font-family: 'Public Sans', sans-serif;
}

p{
    line-height: 1.6rem;
}

a {
    text-decoration: none;
}

header {
    background-color: var(--white);
    padding:  0.4rem 6.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    z-index: 2;
    width: 100vw;
}

.navigation li{
    display: inline-block;
    box-shadow:none;
}

.navigation li a {
    position: relative;
    margin-left: 20px;
    color: var(--grayishBlue);
}

.navigation li a::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -35px;
    width: 0;
    height: 4px;
    background: linear-gradient(to right,hsl(136, 65%, 51%), hsl(192, 70%, 51%));
    transition: all .5s;
}

.navigation li a:hover::after {
    width: 100%;
}

.dropdown-toggle {
    display: none;
    outline: none;
    border: none;
    background: none;
    cursor: pointer;
}

span, p {
    color: var(--grayishBlue);
}

/* START- Details Section */
.details {
    background-color: var(--veryLightGray);
    display: grid;
    grid-template-columns: 40% 60%;
    height: 85vh;
    justify-content: center;
    align-items: center;
    position: relative;
}

.brief_details {
    display: flex;
    flex-direction: column;
    width: 85%;
    transform: translate(25%,-2%);
}

.request_invite_btn {
    display: grid;
    border: none;
    outline: none;
    all: unset;
    width: 7em;
    background: linear-gradient(to right,hsl(136, 65%, 51%), hsl(192, 70%, 51%));
    color: var(--white);
    margin:20px 0;
    padding: 10px 25px;
    text-align: center;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 400;
}

.brief_details h1 {
    font-size: 3.6rem;
    font-weight: 400;
    margin-bottom:5%;
    color: var(--darkBlue);
}

.mockup {
    background: url('./images/bg-intro-desktop.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position-x: 110px;
    background-position-y: -80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-img {
    width: 80%;
    transform: translate(180px,-50px);
}
/* END- Details Section */

/* START- Benifits Section */
.reason {
    background-color: var(--lightGrayishBlue);
    padding: 5% 10%;
}
.benefit {
    position: relative;
    padding-bottom: 7%;
    width: 45vw;
}

.benefit h1 {
    font-size: 2.6rem;
    font-weight: 300;
    margin: 20px 0;
    color: var(--darkBlue);
}

.benefit p {
    color: var(--grayishBlue);
}

.reason .why_list {
    display: flex;
    justify-content: space-between;
    gap: 1.5em;
}

.why_list > div img {
    padding: 10px 0;
}

.why_list > div h2 {
    padding: 1.6rem 0;
    font-weight: 300;
    color: var(--darkBlue);
}
/* END- Benifits Section */


/* START- Articles Section */
.latest-articles {
    padding: 5% 10%;
    background: var(--veryLightGray);
}

.latest-articles > h1 {
    font-size: 2.6rem;
    font-weight: 300;
    margin-bottom: 5%;
    color: var(--darkBlue);
}

.articles {
    display:flex;
    justify-content: space-between;
    gap: 1em;
}

.articles .article_card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
}

.article-thumbnail{
    width: 100%;
    height: 200px;
    padding-bottom: 15px;
}

.article_card .postedBy {
    margin: 0px 0;
    font-size: small;
}

.article_card .article-title {
    font-size: 20px;
    padding: 10px 0;
    cursor: pointer;
    font-weight: 700;
    color: var(--grayishBlue);
}

.article-title:hover{
    color:var(--brightCyan) ;
}

.card_body {
    padding: 20px;
}
/* END- Articles Section */

/* START- Footer */
footer {
    background-color: hsl(233, 26%, 24%);
    display: flex;
    justify-content: space-between;
    padding: 4% 10%;
}
.ft-one {
    display: flex;
    justify-content: space-between;
    flex-basis: 50%;
}

footer ul {
    list-style: none;
}

.social_link {
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
}

.social_link .logo-img {
    color: #fff;
    padding-bottom: 20px;
    width: 95%;
}

.social_link_list li {
    display: inline-block;
    margin-right: 10px;
}

.social_link_list li svg path:hover{
    fill: var(--limeGreen) !important;
}

.ft-nav-1 li, .ft-nav-2 li {
    margin: 10px 0;
}

.ft-nav-1 li a, .ft-nav-2 li a {
    color: var(--lightGrayishBlue);
    /* font-size: 20px; */
}

.ft-nav-1 li a:hover, .ft-nav-2 li a:hover{
    color: var(--limeGreen);
}

.ft-two {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
}

.ft-two h4 {
    color: var(--grayishBlue);
}

.dropdown-close{
    display: none;
}
/* End - Footer */


@media screen and (max-width: 765px){
    header {
        padding: 30px 40px;
    }
    .navigation {
        position: absolute;
        top: 100px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        background: #fff;
        width: 80%;
        padding: 40px;
        border-radius: 10px;
        text-align: center;
        opacity: 0;
        transition: all .5s ease-in-out;
        box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
    }

    header .navigation li {
        margin: 20px 0;
    }

    header .navigation li a {
        color: var(--darkBlue);
        font-weight: 900;
        font-size: 20px;
    }

    .navigation li a {
        margin: 0;
    }

    .navigation li a::after {
        bottom: -20px;
    }

    header .request_invite_btn {
        display: none;
    }

    .active {
        opacity: 1;
    }
    
    .dropdown-toggle {
        display: block;
    }

    .details {
        all: unset;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column-reverse;
        background: hsl(220, 16%, 96%);
    }

    .brief_details {
        width: 100%;
        transform: translate(0);
        padding: 0 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .brief_details h1 {
        width: 95%;
    }

    .brief_details span {
        font-size: 20px;
    }

    .mockup {
        background-size: 100%;
        background-position-x: 120px;
        background-position-y: 30px;
    }

    .mockup-img {
        width: 100%;
        transform: translate(0, -90px);
        filter: invert(10%);
    }

    .reason {
        padding: 40px;
        width: 100vw;
    }

    .reason .why_list {
        flex-direction: column;
    }

    .reason  div {
        width: 93%;
        margin: auto;
        text-align: center;
    }

    .reason div p {
        font-size: 20px;
        color: var(--grayishBlue);
    }

    .latest-articles {
        padding: 40px;
    }

    .articles {
        flex-direction: column;
    }

    .articles .article_card {
        width: 100%;
    }

    .article-thumbnail {
        height: 300px;
    }

    .card_body {
        padding: 10px 20px 40px 20px;
    }

    footer {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
    }

    .ft-one {
        flex-direction: column;
    }

    .ft-nav-1, .ft-nav-2 {
        text-align: center;
    }

    .ft-nav-1 li, .ft-nav-2 li {
        margin: 20px 0;
    }

    .ft-nav-2 {
        margin-top: -20px ;
    }

    .ft-two {
        justify-content: center;
        align-items: center;
    }

    .ft-two h4 {
        font-size: 20px;
    }
}
