html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    font-family: sans-serif;
    font-weight: 300;
    letter-spacing: 1.5;
    scroll-behavior: smooth;
    margin: 0;
}

* {
    box-sizing: border-box;
}

:root {
    --100: white;
    --light: rgb(248, 248, 235);
    --light2: #F0F0E3;
    --blue: #345995;
    --accent: #034e4b;
    --dark: #002c3d;
    --900: black;
}
. {color: #04736f;}
h1,
h2,
h3 {
    font-family: "Newsreader", serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    letter-spacing: 1px;
}

h2 {
    font-size: 38px;
}

h3 {
    font-size: 20px;
    font-family: sans-serif;
}

p {
    line-height: 1.5;
}

a {
    color: var(--dark)
}

body {
    color: #002c3d;
    background-color: var(--light);
    min-height: 100%;
    margin: 0;
    font-size: 16px;
    line-height: 20px;
}

.nav {
    background-color: var(--dark);
    color: var(--light);
}

.nav {
    width: 100%;
    height: 150px;
    display: grid;
    justify-content: space-between;
    grid-auto-flow: column;
    grid-template-columns: 1fr 1fr 4fr;
}

.logo-container {
    padding: 20px;
    height: 150px;
}

.nav h2 {
    align-self: center;
    justify-self: start;
    letter-spacing: 2px;

}

.nav-links {
    align-self: center;
    justify-self: end;
    margin-right: 20px;
    padding-right: 20px;
}

.nav-links li {
    height: 40px;
    padding-top: 10px;
    width: 100px;
    display: inline-block;
    text-align: center;
    list-style: none;
}

.nav-links li:hover {
    font-weight: bold;

}

.nav-links a {
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--light);
    letter-spacing: 2px;
}

.nav-links a.active {
    border-bottom: 3px solid var(--accent);
    font-weight: bold;
}

/*    HAMBURGER MENU    */

#nav-icon {
    display: block;
    align-self: center;
    justify-self: end;
    margin-right: 40px;
    width: 500px;
    height: 60px;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
}

#nav-icon span {
    display: none;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--light2);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}

#nav-icon {}

#nav-icon span:nth-child(1) {
    top: 0px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
}

#nav-icon span:nth-child(2) {
    top: 15px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
}

#nav-icon span:nth-child(3) {
    top: 30px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
}

#nav-icon.open {
    width: 40px;
}

#nav-icon.open span:nth-child(1) {
    width: 42px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

#nav-icon.open span:nth-child(2) {
    width: 0%;
    opacity: 0;
}

#nav-icon.open span:nth-child(3) {
    width: 42px;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    top: 30px;
}




/*  HEADER SECTION  */


.header {
    background-color: var(--dark);
    background: linear-gradient(180deg,rgba(0, 44, 61, 1) 0%, rgba( 3, 78, 75, 1)  100%);
    height: 600px;
    color: var(--light);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

.hero-text {
    align-self: center;
    justify-self: center;
    font-size: 1.75rem;
}

.hero-image {
    background-color: #002c3d;
    align-self: center;
    justify-self: center;
}

.hero-text-small {
    display: none;
    align-self: center;
    justify-self: center;
    font-size: 1.75rem;
    line-height: 1.5rem;
}

.hero-image img {
    width: 350px;
    height: 350px;
    object-fit: fill;
    border: var(--light) 1px solid;
}




/*  MAIN BODY   */





.section {
    width: 1000px;
    margin: auto;
}

/*  ABOUT SECTION   */




.about-section {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.about-section h2 {
    font-weight: 400;
}

.about-section p {
    margin-bottom: 1rem;
}


/*  AFFILIATES SECTION  */

.affiliates-section {
    padding-top: 40px;
    padding-bottom: 20px;
    background-image: linear-gradient(var(--light)80%, var(--light2) 100%)
}

.affiliates-logos {
    display: flex;
    justify-content: space-around;
}

.affiliates-logos img {
    height: 80px;
}


/*    SERVICES SECTION    */


.services {
    padding-top: 40px;
    padding-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 20px;
}

.service {
    background-color: var(--light2);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}

.service button {
    width: 150px;
    margin: auto;
    background-color: var(--dark);
        background: linear-gradient(90deg,rgba(0, 44, 61, 1) 0%, rgba( 3, 78, 75, 1)  100%)
    border: none;
    color: var(--light);
    border-radius: 5px;
    line-height: 2rem;
    padding-left: 20px;
    padding-right: 20px;

}


/*    BLOG SECTION    */

.blog-section {
    padding-top: 40px;
    padding-bottom: 60px;
}

.blog-section h2 {
    text-align: center;
}

.blog-highlight-container {
    padding-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 20px;
}

.blog-highlight {
    display: grid;
    grid-template-rows: 200px 150px;
    background-color: var(--light2);

}

.blog-highlight img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    padding: 0 !important;
}

.blog-highlight-info {
    display: grid;
    grid-template-rows: 100px 50px;
}

.blog-highlight-info h3 {
    padding-left: 20px;
    padding-right: 20px;

}

.blog-highlight-info div {
    border-top: var(--light) 1px solid;
}

.blog-highlight-info .date {
    display: inline;
    float: left;
    padding-left: 20px;
}

.blog-highlight-info .link {
    display: inline;
    float: right;
    padding-right: 20px;

}


/*    FOOTER SECTION    */

.footer {
    background-color: var(--dark);
    color: var(--light);
}



/*    MEDIA QUERIES   */





@media screen and (max-width: 1200px) {
    .nav {
        grid-template-columns: 1fr 1fr 3fr;
    }

    .hero-text {
        font-size: 1.5rem;
        line-height: 1.5rem;
    }

    .hero-image {
        height: 400px;
        width: 300px;
    }

}



@media screen and (max-width: 1000px) {
    .nav-links {
        display: none;
        position: absolute;
        margin-top: 60px;
        right: 0px;
        padding-right: 0;
        margin-right: 0;
        -webkit-transition: .25s ease-in-out;
        -moz-transition: .25s ease-in-out;
        -o-transition: .25s ease-in-out;
        transition: .25s ease-in-out;
    }

    .nav-links.open {
        display: block;
    }


    .nav-links li {
        height: 40px;
        padding-top: 10px;
        width: 100vw;
        background-color: rgba(0, 44, 61, .8);
        display: block;
        text-align: right;
        list-style: none;
    }



    .nav-links a.active {
        border-bottom: 0;
        font-weight: bold;
    }

    #nav-icon {
        display: block;
        float: right;
        width: 40px;
        height: 30px;
        position: relative;

    }
    #nav-icon span {
        display: block;
    }

    .hero-text {
        font-size: 1.25rem;
        line-height: 1.5rem;
    }

    .hero-image {
        height: 250px;
        width: 250px;
    }

    .hero-image img {
        height: 250px;
        width: 250px;
    }

    .section {
        max-width: 800px;
        margin: auto;
    }
    .affiliates-logos img {
        height: 70px;
}
}

@media screen and (max-width: 800px) {
    .main {
        width: 80%;
        margin: auto;
    }

    .section {
        max-width: 100%;
    }
    .nav h2 {
    line-height: 2rem;

}
    .nav-links li:last-of-type {
        padding-bottom: 100vh;

    }
    .header-content {
        grid-template-columns: 1fr;
    }

    .hero-text {
        display: none;
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .hero-image, .hero-image img {
        height: 300px;
        width: 300px;
    }

    .hero-text-small {
        display: block;
        font-size: 1.25rem;
        text-align: center;
        line-height: normal;
    }
    .affiliates-logos img {
        height: 50px;
}
.services {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 20px;
}

.blog-highlight-container {
    padding-top: 20px;
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 20px;
    grid-template-rows: 200px;
    row-gap: 20px;
}

.blog-highlight {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: 200px;
}

.blog-highlight img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0 !important;
}

.blog-highlight-info {
    display: grid;
    grid-template-rows: 150px 50px;
}

.blog-highlight-info h3 {
    padding-left: 20px;
    padding-right: 20px;

}

.blog-highlight-info div {
    border-top: var(--light) 1px solid;
}

.blog-highlight-info .date {
    display: inline;
    float: left;
    padding-left: 20px;
}

.blog-highlight-info .link {
    display: inline;
    float: right;
    padding-right: 20px;

}


}

@media screen and (max-width: 600px) {
    .main {
        width: 90%;
    }

    .section {
        max-width: 100%;
    }

    .header-content {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
    }
    .affiliates-logos img {
        height: 40px;
}
    h2 {
        font-size: 1.8rem;
    }
.blog-highlight-info h3 a{
    font-size: 16px;
    text-decoration: none;
}
.blog-highlight-info div .link {
    display: none;
}
}
@media screen and (max-width: 450px) {
        .affiliates-logos img {
        height: 30px;
}
}