@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400&display=swap');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.6;
}

ul {
    list-style: none;
}

a {
    color: #333;
    text-decoration: none;
}

h1, h2 {
    font-weight: 300;
    line-height: 1.2;
}

p {
    margin: 10px 0;
}

img {
    width: 100%;
}

img:hover {
    box-shadow: 0 0 8px 1px rgba(225, 231, 233, 0.5);
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #333;
    color: #fff;
    opacity: 1.2;
    width: 100%;
    height: 70px;
    position: fixed;
    top: 0px;
    padding: 0 20px;
    transition: 0.5s;
}

.navbar.top {
    background: rgb(22, 29, 28);
}

.navbar a {
    color: #fff;
    /* padding: 10px 20px; */
    /* margin: 0 5px; */
}

/* .navbar a:hover {
    border-bottom: #28a745 2px solid;
} */

.navbar ul {
    list-style: none;
    display: flex;
}
/* This one makes the menu shows in small media */
.navbar ul li {
    padding: 5px 30px;
    position: relative;
 }
 
 .navbar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
 }
 
 .navbar ul li a:hover {
    color: #62ebab;
    border-bottom: rgb(197, 223, 84) solid 2px;
    /* border-radius: 3px; */
 }
 
.navbar .logo {
    font-weight: 400;
}

/* The Dropdown to display */
.dropdown_menu {
    display: none;
    align-items: left;
    position: absolute;
    z-index: 1000;
 }
 .dropdown_menu ul li a, .dropdown_menu-1 ul li a {
     font-size: 0.9rem;
 }
 
 .navbar ul li:hover .dropdown_menu {
    display: block;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: rgb(22, 29, 28);
 }
 .navbar ul li:hover .dropdown_menu ul {
    display: block;
    margin: 10px;
    position: relative;
    z-index: 100;
 }
 .navbar ul li:hover .dropdown_menu ul li {
    width: 150px;
    padding: 10px;
 }
 .dropdown_menu .fas {
    float: right;
    margin-left: 10px;
    padding-top: 6px;
 }
 .dropdown_menu-1 {
    display: none;
 }
 .dropdown_menu ul li:hover .dropdown_menu-1 {
    display: block;
    position: absolute;
    top: 0;
    left: 150px;
    background-color: rgb(22, 29, 28);;
 }
 

/* Header */
.hero {
    background: url('../images/home/Truck_machines.jpg') no-repeat center center/cover;
    height: 100vh;
    position: relative;
    color: #fff;
}

.hero .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 0 20px;
    z-index: 19;
}

.hero .content h3 {
    font-size: 1.5rem;
    margin-top: 75px;
}
.hero .content img {
    resize: 100%;
}
.hero .content p {
    font-size: 23px;
    max-width: 600px;
    margin: 20px 0 30px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.hero * {
    z-index: 10;
}

.hero.blog {
    background: url('../images/blog/cata.jpeg') no-repeat center center/cover;
    height: 30vh;
}

.container {
    margin: auto;
    max-width: 1500px;
    /* overflow: auto; */
    padding: 0px 20px;
}

/* Icons */
.icons {
    padding: 30px;
}

.icons h3 {
    font-weight: bold;
    margin-bottom: 15px;
}

.icons i {
    background-color: #28a745;
    color: #fff;
    padding: 1rem;
    border-radius: 50%;
    margin-bottom: 15px;
}

.cases img:hover {
    opacity: 0.7;
}

.team img {
    border-radius: 50%;
    width: 50%;
}

/* Callback form */
.callback-form {
    width: 100%;
    padding: 20px 0;
}

.callback-form label {
    display: block;
    margin-bottom: 5px;
}

.callback-form .form-control {
    margin-bottom: 15px;
}

.callback-form input {
    width: 100%;
    padding: 4px;
    height: 40px;
    border: #f5f5f5 1px solid;
}
.callback-form input:focus {
    outline-color: #28a745;
}

.callback-form .btn {
    padding: 12px 0;
    margin-top: 20px;
}

/* I used this area for the form */
.textarea {
    width: 100%;
    height: 100px;
    padding: 5px;
    line-height: 1.5;
}
.textarea:focus {
cursor: text;
}

/* Post */
.post {
    padding: 50px 30px;
}

.post h2 {
    font-size: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: #ccc solid 1px;
}

.post .meta {
    margin-bottom: 30px;
}

.post img {
    width: 300px;
    border-radius: 50%;
    display: block;
    margin: 0 auto 30px;
}

/* Footer */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 200px;
}

.footer a {
    color: #fff;
}

.footer a:hover {
    color: #28a745;
}

.footer .social > * {
    margin-right: 30px;
}
/*Box for Contact Enquiries*/
#box {
    width: 80%;
    margin: 30px auto;
    padding: 10px;
    display: block;
    align-items: center;
}
/*Container for Course Overview*/
.course {
    width: 80%;
    padding: 10px 50px;
    margin: 30px auto;
    color: #333;
    display: block;
    /* border: 1px solid #333; */
    position: relative;
    font-size: 0.9rem;
    text-align: justify;
    justify-content: left;
}

.course h3 {
    color: #ec7300;
}

.course ul li {
    list-style: square;
    list-style-position: inside;
    /* text-indent: 20px; */
    text-align: justify;
}
.course ol li {
    list-style:decimal;
    list-style-position: inside;
    /* text-indent: 20px; */
    text-align: justify;
}
.course button { font-size: 1rem;}

.hanging {
    position: absolute;
    width: 200px;
    top: 420px;
    right: 10px;
}


/* Mobile */
@media(max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: 120px;
        padding: 20px;
    }
    .navbar ul li {
        padding: 10px 15px;
        margin: 0 1px;
    }

    .navbar a {
        padding: 10px 0px;
        margin: 0 1px;
     }
     .navbar ul li a:hover {
        color: #62ebab;
        border-bottom: none;
        /* border-radius: 3px; */
     }

     .hero .content {
        padding: 120px 20px 0;
    }
    .hero.blog .content h3{
        font-size: 1.2rem;
        margin-top: 0px;
    }

     .hero .fas {
         display: none;
     }

    .flex-items {
        flex-direction: column;
    }

    .flex-columns .column, .flex-grid .column {
        flex: 100%;
        max-width: 100%;
    }

    .team img {
        width: 80%;
    }
    .hero .content h1 {
        font-size: 30px;
    }
    .hero .content p {
        font-size: 15px;
    }
    .section-header {
        margin: 30px auto 5px;
        padding: 5px 5px;
    } 
    .section-header h2{
        font-size: 2.2rem;
        font-weight: bold;
        margin-bottom: 20px;
    } 
    .section-header p {
        font-size: 15px;
        margin: 5px auto 5px;
        padding: 5px 15px;
    } 
    .textarea {
        width: 100%;
        height: 100px;
        padding: 5px;
        line-height: 1.5;
    }
    #box {
        width: 80%;
        margin: 30px auto;
        padding: 10px;
        display: block;
        align-items: center;
    }
}