body {
    font-family: Helvetica, Arial, sans-serif;
    margin: 0;
}

/* ----- TYPOGRAPHY ----- */

h1, 
h3 {
    margin: 0;
}

h1 {
    color: white;
    font-size: 1.75rem;
}

h2 {
    color: #000000;
    font-size: 1.375rem;
    margin-top: 0;
}

.section-two h2 {
    color: inherit;
}

h3 {
    margin-top: 1rem;
    font-size: 1.25rem;
}

p {
    line-height: 1.5;
}

.feature-item p {
    margin-bottom: 2rem;;
}

.subheading {
    display: block;
    font-size: 1rem;
    color: whitesmoke;
}

/* ----- LINKS ----- */

.btn {
    font-size: 1.125rem;
    text-align: center;
    font-weight: 500;
    text-decoration: none;
    display: block;
    padding: 0.5em 1em;
    margin-bottom: 1em;
    border-radius: 4.6px;
}

.btn-dark {
    color: whitesmoke;
    background: #162b75;
}

.btn-mid {
    color: whitesmoke; 
    background: #0368d9; 
}

.btn-light {
    color: #0378ff; 
    background: whitesmoke;
}

.btn-mid:hover, 
.btn-mid:active,
.btn-dark:hover,
.btn-dark:active {
    color: whitesmoke;
    background-color: #0378ff;
}

.btn-light:hover,
.btn-light:hover {
    color: #162b75;
}



/* ----- LAYOUT ----- */


header, 
section, 
footer {
    padding: 1.25em 0;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

header, 
.section-two {
    background-color: #0368d9;
}

.section-two {
    color: whitesmoke;
}

.main-image {
    width: 100%;
    display: block;
    max-width: 640px;
    margin: 0 auto 2em;
    border-radius: 10px;
}

.section-two-image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.feature-image {
    width: 100%;
    border-radius: 4.6px;
}

.feature-item {
    flex: 1 1 360px;
}

footer {
    text-align: center;
    color: #162b75;
}

/* ----- NAVIGATION ----- */

header .container {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.logo-img {
    width: 25%;
    min-width: 175px;
    margin-bottom: 1rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.125rem;
    padding: 0.85em 0;
    display: block;
}

nav {
    width: 100%;
}

ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

/* ----- MEDIA QUERIES ----- */

@media (max-width: 767px) {
    header {
        text-align: center;
    }
 
    li:not(:last-child) {
        border-bottom: 1px dotted #a190b6;
    }  
}

@media (min-width: 768px) {
    section,
    footer {
        padding: 2.875em 0;        
    }
    
    header .container,
    nav ul {
        display: flex;
        justify-content: space-around;
    }
    
    header .container {
        justify-content: space-between;
        align-items: center;
    }

    .branding-container {
        display: flex;
        align-items: center;
    }

    .brand-text {
        margin-left: 1.5rem;
    }
    
    nav li {
        margin-left: 1.25em;
    }
    
    .btn {
        display: inline-block;
        margin-right: 0.5em;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .subheading {
        font-size: 1.25rem;
    }
    
    p {
        font-size: 1.125rem;
    }
}