:root {
    --primary-color: #333;
    --secondary-color: #444;
    --overlay-color: rgba(0,0,0,0.7)
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Catamaran', sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: 1.1rem;
}

h1, h2, h3, h4 {
    line-height: 1.3;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    width: 100%;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

.navbar {
    font-size: 1.2rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.navbar .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.navbar .logo {
    font-size: 2rem;
}

.navbar .nav {
    justify-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar .nav a {
    padding: 0 1rem;
}

.navbar .nav a:hover {
    color: #555;
}

.section-a {
    margin: 2rem 0;
}

.section-a .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 3rem;
    align-items: center;
    justify-content: center;
}

.section-a h1 {
    font-size: 4rem;
    color: var(--primary-color);
}

.section-a p {
    margin: 1rem 0
}


/* section-b */

.section-b {
    position: relative;
    background-color: #047aed;
    height: 600px;
}

.section-b-inner {
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: auto;
    max-width: 860px;
    padding: 5rem 0;
}

.section-b-inner h2 {
    font-size: 5rem;
    
}

.section-b-inner p {
    font-size: 1.5rem;
    margin-top: 1rem;
}

/* section-c */



.section-c .box {
    width: 200px;
    height: 200px;
    box-shadow: 2px 2px 30px rgba(0,0,0,0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 25px;
}

.section-c .box .slide-img {
    position: relative;
}

.section-c .box .slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-sizing: border-box;
}

.section-c .container h2 {
    font-size: 3rem;
    text-align: center;
    margin-top: 1rem;
    
}

.section-c .box2 {
    width: 200px;
    height: 200px;
    margin: 25px;
}

.section-c .box2 .slide-img {
    position: relative;
}

.section-c .box2 .slide-img img {
    width: 100%;
    height: 100%;
}

/* Section-d */

.section-d {
    background-color: #047aed;
    color: #fff;
    position: relative;
}

.section-d .container {
    
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 30px;
    justify-content: center;
    align-items: center;
    height: 100%;    
}


.section-d h1 {
    font-size: 40px;
}
  
.section-d p {
    margin: 20px 0;
}


.section-d-form {
    position: relative;
    height: 310px;
    width: 400px;
    padding: 40px;
    z-index: 100;
    justify-self: flex-end;
}

.section-d-text {
    text-align: left;
}

.section-d-form .form-control {
    margin: 15px 0;

}

.section-d-form input:focus {
    outline: none;
}


.section-d-form input[type='text'] {
    border: 0;
    border-bottom: 1px solid #b4becb;
    width: 100%;
    padding: 3px;
    font-size: 16px;

}

/* Footer */

.section-footer {
    background: #002240;
    color: #fff;
    padding: 4rem 0;
}

.section-footer .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1rem;
}

.section-footer h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-footer h3 {
    margin-bottom: 0.7rem;
}

.section-footer a {
    line-height: 1.9;
    color: #ccc;
}

/* Utilities */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: 30px;
}

.btn:hover {
    background: var(--secondary-color);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;

}



.card {
    background-color: #fff;
    color: #333;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin: 10px;
    
}

/* Media Queries */

@media(max-width: 700px) {

    .navbar .logo {
        font-size: 1rem;
    }

    .navbar .nav {
        font-size: 0.7rem;
    }

    .section-a .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-a .container div:first-child {
        order: 2;
    }

    .section-a .container div:last-child {
        order : -1;
    }

    .section-a img {
        width: 80%;
        margin: auto;
    }

    .section-footer {
        padding: 2rem 0;
    }

    .section-footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    

    .section-d .container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    .section-d-text {
        text-align: center;
        margin-top: 40px;
    }


    .section-d-form {
        justify-self: center;
        /* margin: 30px; */
        width: auto

    }

    .section-d p {
        padding: 10px;
        
    }
    

    

    .grid > *:first-child {
        grid-column: 1;
        grid-row: 1;
    }



}