/*
Theme Name: MGI
Text Domain: MGI
Version: 0.1
Description:
Tags:
Author:
Author URI:
Theme URI: 
*/

* {
    box-sizing:border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    margin: 0px;
}

#wrapper {
    display: grid;
    grid-template-columns: minmax(0,1fr) repeat(6, minmax(0,175px)) minmax(0,1fr);
}

/* nav */

header {
    grid-row: 1/2;
    grid-column: 1/9;
    background-color: #EBEBEB;
   
}

#logo {
    height: 106px;
    padding: 0.75rem;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

nav ul {
    display: flex;
    flex-flow: row;
    list-style-type: none;
    
}

nav ul li {
    padding: 1rem;
    position: relative;
}

nav ul li ul {
    position: absolute;
    background-color: #003F87;
    width: auto;
    z-index: 1;
    padding: 0;
    opacity: 0; 
    visibility: hidden; 
    flex-direction: column; 
}


nav ul li ul li a:hover {
    color: white;
}

nav ul li ul li{
    border-bottom: 1px solid #EBEBEB;
}

nav ul li ul li:last-child {
    border-bottom: none;
}


nav ul li a {
    width: 100%;
    padding: 5px;
    text-decoration: none;
    color: #003F87;
    display: block;
    font-weight: bold;
    font-size: 1.25rem;
}

nav ul li ul li a {
    color: white;
    font-size: 1rem;
    padding: 5px;

}

nav ul li > a:hover {
    color: black;
}

#navbar .fa-angle-down {
    transition: transform 0.3s ease;
}

#navbar .about-link:hover .fa-angle-down {
    transform: rotate(180deg);
}

#navbar .services-link:hover .fa-angle-down {
    transform: rotate(180deg);
}

#navbar .resources-link:hover .fa-angle-down {
    transform: rotate(180deg);
}



nav ul>li:hover>ul { 
    display:block; 
    opacity: 1;
    visibility: visible;
    transition: 0.3s ease;

}

nav ul li ul li:hover {
    background-color: #1E1E1E;
    transition: 0.3s ease;
}



#navbar.sticky {
    top: 0;
    position: fixed;
    width: 100%;
    z-index: 1;
    background-color: #EBEBEB;
    height: auto;
}

nav .menu-icon {
    cursor: pointer;
    display: none;
    float: right;
    padding: 28px 20px;
    position: relative;
    user-select: none;
    background-color: lightgray;
    border-radius: 10px;
}

nav .menu-icon .navicon {
    background: #003F87;
    display: block;
    height: 3px;
    position: relative;
    transition: .2s ease-out;
    width: 24px;
}

nav .menu-icon .navicon:before,
nav .menu-icon .navicon:after {
    background: #003F87;
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

nav .menu-icon .navicon:before {
    top: 7px;
}

nav .menu-icon .navicon:after {
    top: -7px;
}

nav .menu-btn {
    display: none;
}

nav .menu-btn:checked ~ .menu {
    max-height: 240px;
}

nav .menu-btn:checked ~ .menu-icon .navicon {
    background: transparent;
}

nav .menu-btn:checked ~ .menu-icon .navicon:before {
    transform: rotate(-45deg);
}

nav .menu-btn:checked ~ .menu-icon .navicon:after {
    transform: rotate(45deg);
}

nav .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
nav .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
    top: 0;
}


/* main */

/* yellow/gold button */
.primary-button {
    background-color: #E89C1E;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 20px;
    border: none;
    padding: 0.8rem;
    border-radius: 10px;
    width: 12rem;
}

.primary-button:hover {
    transition: 0.5s ease;
    background-color: #ae7417;
    cursor: pointer;
    

}

/* blue button */
.secondary-button {
    background-color: #003F87;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 20px;
    border: none;
    padding: 0.8rem;
    border-radius: 10px;
    width: auto;
    
}

.secondary-button:hover {
    transition: 0.5s ease;
    background-color: #1E1E1E;
    cursor: pointer;
}

main {
    grid-row: 2/3;
    grid-column: 1/9;
    align-items: center;
}

.hero {
    position: relative;
    width: 100%;
    height: 620px;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: auto;
    opacity: 0.85;
}

.overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 20px;
    background-color: transparent;
    display: flex;
    flex-flow: column;
    align-items: center;
}

.overlay h1 {
    margin: 0;
    color: white;
    font-size: 4rem;
    width: 19rem;
    text-align: right;
    padding-bottom: 1rem;
}

.main-headings {
    text-align: center;
    color: #003F87;
}

#slider-container {
    overflow: hidden;
    width: auto; 
    position: relative;
}

#slider-wrapper {
    display: flex;
    color: white;
    transition: transform 0.3s ease-out;
    justify-content: space-around;
}


.services {
    color: white;
    height:auto;
    text-align: center;
    /* color: #003F87; */
    display: flex;
    flex-flow: row wrap;
    
}

.services-btn {
    text-align: center;
    margin: auto;
}

.service-card {
    background-color: #003F87;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    transition: transform 0.3s ease-in-out;
    border-radius: 1rem;
}

.service-card i {
    margin-bottom: 10px;
    user-select: none;
}

.service-card p {
    text-align: center;
    font-weight: bold;
    user-select: none;
}

.service-card:hover {
    background-color: #1167be;
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

#progress-container {
    width: 100%;  
    background-color: #EBEBEB; 
    height: 8px;
    position: relative;
    margin-top: 20px;
    margin-bottom: 30px;
}

#progress-bar {
    width: 0%;
    height: 8px;
    background-color: #003F87;
    transition: width 0.3s ease-out;
   
}

.services-btn button {
    margin-left: 1rem;
    margin-right: 1rem;
}


.about {
    color: #FFFFFF;
    display: flex;
    flex-flow: column;
    align-items: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 63, 135, 0.8)), url('images/cityskyline.jpeg');
    background-size: cover; 
    background-position: center;
    background-attachment: fixed;
    margin-top: 2rem;
}

.about h2 {
    font-size: 35px;
}

.about p {
    width: 70%;
    text-align: center;
    font-size: 20px;
    margin-bottom: 1.5rem;
}

.about button {
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.stats div {
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
}

.stats div div {
    display: flex;
    flex-flow: column;
    margin: 1rem;
    margin-left: 3rem;
    margin-right: 3rem;
}

.certification {
    background-color: #EBEBEB;
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.certification p {
    width: 25%;
    font-size: 20px;
    text-align: center;
    margin-left: 2rem;
    margin-right: 2rem;
}

#bbb {
    height: 200px;
    margin-top: 3rem;
    margin-bottom: 3rem;
    margin-right: 2rem;
}

#rma {
    height: 200px;
    border-radius: 10px;
    margin-top: 3rem;
    margin-bottom: 3rem;
    border: 1px solid #005E85;
}

.million {
    font-weight: bold;
    color: #4093C9;
}

.icon {
    height: 100px;
    width: 100px;
}

.profit {
    font-size: 2rem; 
    color: #003F87;
    font-weight: bold;
    padding: 0;
    margin: 0;
}

.business {
    font-size: 1rem;
    font-weight: bold;
    padding: 0;
    margin: 0;
    text-align: center;
    width: 170px;
}   

.material-symbols-outlined {
    height: 100px;
    width: 100px;
}

/* footer */

footer {
    grid-row: 3/4;
    grid-column: 1/9;
    background-color: #EBEBEB;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

.paynow {
    background-color: #003F87;
    text-align: center;
    display: flex;
    flex-flow: column;
    width: 100%;
}

.paynow h2 {
    font-size: 35px;
    color: #FFFFFF;
    margin: 3rem;
}

.paynow div {
    display: flex;
    margin-bottom: 3rem;
}

.paynow div button {
    margin-right: 3rem;
    margin-left: 3rem;
}

footer div:nth-child(2) {
    display: flex;
    justify-content: center;
    align-items: center;
}

footer div ul {
    display: flex;
    flex-flow: column;
    list-style-type: none;
}

footer div ul li {
    padding: 0.2rem;
}

footer div ul li a {
    text-decoration: none;
    color: #000000;
}

footer p {
    font-style: italic;
}

#footerlogo {
    height: 71px;
    padding: 0.5rem;
    align-self: left;
}


@media only screen and (max-width: 996px) { 

    #navbar .about-link:hover .fa-angle-down,
    #navbar .services-link:hover .fa-angle-down,
    #navbar .resources-link:hover .fa-angle-down {
        transform: none;
    }

    #navbar .about-link .fa-angle-down,
    #navbar .services-link .fa-angle-down,
    #navbar .resources-link .fa-angle-down {
        float: right;
    }



    .rotate-down {
        transform: rotate(180deg);
    }

    nav ul>li:hover>ul { 
        display: none;
        opacity: 0;
        visibility: hidden;
    }


    nav ul li a {
        color: #EBEBEB;
    }

    nav ul li > a:hover {
        color: #FFFFFF
    }

    nav ul li ul li a:hover {
        color: #003F87;
    }

    nav ul li ul li:hover {
        background-color: #FFFFFF;
    }

    nav ul li ul li {
        background-color: white;
        border-bottom: 1px solid #003F87;
    }

    nav ul li ul li a{
        color: #003F87;
    }

    nav {
        justify-content: space-between;
       
    }

    #logo {
        height: 96px;
        padding: 0.75rem;
        margin-left: 30px;
    }


   .hero {
        margin-top: 6.4rem;
        height: 325px;
    }

    nav ul {
        display: none;
    }

    nav .menu-icon {
        display: inline-block;
        margin-right: 30px;
    }

    nav .menu.show {
        display: flex;
        flex-direction: column;
        background-color: #003F87;
        position: absolute;
        top: 0%;
        right: 0;
        height: auto;
        width: 30%;
        z-index: 0;
        padding: 0;
        margin: 0;
        padding-top: 5rem;
        padding-bottom: 2rem;
    }

    nav ul > li:hover > ul { 
        display: none;
    }

    .overlay {
        margin: 0;
        align-items: self-end;
    }

    .overlay .primary-button {
        width: 9rem;
    }
    
    .overlay h1 {
        font-size: 30px;
        width: 12rem;
        text-align: right;
        padding-bottom: 1rem;
    }

    .primary-button {
        font-weight: bold;
        font-size: 15px;
        border: none;
        padding: 0.7rem;
        border-radius: 10px;
        width: 10rem;
    }

    .secondary-button {
        font-weight: bold;
        font-size: 15px;
        border: none;
        padding: 0.7rem;
        border-radius: 10px;
        width: 10rem;
    }

    .about h2 {
        font-size: 27px;
    }

    .about p {
        font-size: 19px;
    }
    
    .stats div {
        flex-flow: column;
    }

    .certification {
        flex-flow: column;
    }

    .certification p {
        width: 50%;
    }

    #bbb {
        margin-bottom: 1rem;
    }
    
    #rma {
        margin-bottom: 1rem;
    }

    .paynow h2 {
        font-size: 27px;
    }

    .paynow div {
        flex-flow: column;
    }

    .paynow div button {
        margin-right: 0rem;
        margin-left: 0rem;
        margin-bottom: 1rem;
    }
}