
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    font-size: 18px;
    text-align: center;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px 5%;
    flex-wrap: wrap;
}

header img {
    height: 120px;
}

nav {
    font-size: 1rem;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: black;
    font-weight: bold;
}

section {
    padding: 40px 0;
    width: 70%;
    margin: auto;
    border-bottom: 1px solid #ccc;
}

.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    text-align: center;
    gap: 20px;
}

.hero-text {
    width: 65%;
    text-align: center;
    align-self: flex-start;
}

.hero-text h1 {
    font-size: 2.4em;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero img {
    width: 30%;
    height: auto;
    align-self: flex-end;
}

#what-is-ctshield {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
}

#what-is-ctshield img {
    width: 20%;
    height: auto;
    padding-right: 20px;
    order: -1;
}

#what-is-ctshield .text {
    width: 75%;
    font-size: 20px;
    text-align: center;
    align-self: flex-start;
}

.how-it-works {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.how-it-works div {
    flex: 1 1 22%;
    background-color: #f2f2f2;
    padding: 15px;
    border-radius: 10px;
    box-sizing: border-box;
}

#before-after img {
    width: 15%;
    margin: 10px;
}

@media screen and (max-width: 768px) {
#what-is-ctshield {
    flex-direction: column;
}
#what-is-ctshield .text {
    order: 1;
}
#what-is-ctshield img {
    order: 2;
}
    .hero, #what-is-ctshield {
        flex-direction: column;
        text-align: center;
    }

    .hero-text, .hero img, #what-is-ctshield img, #what-is-ctshield .text {
        width: 90%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .how-it-works div {
        flex: 1 1 100%;
    }

    #before-after img {
        width: 70%;
    }

    section {
        width: 100%;
    }
}


/* Hamburger menu */
.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon div {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 4px;
    transition: 0.4s;
}

@media screen and (max-width: 768px) {
#what-is-ctshield {
    flex-direction: column;
}
#what-is-ctshield .text {
    order: 1;
}
#what-is-ctshield img {
    order: 2;
}
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    nav a {
        padding: 10px;
        border-top: 1px solid #ccc;
        background-color: white;
        text-align: center;
    }

    nav.active {
        display: flex;
    }

    .menu-icon {
        display: flex;
    }
}


@media screen and (max-width: 500px) {
    section {
        width: 100% !important;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    nav.active {
        display: flex;
    }

    .menu-icon {
        display: flex;
    }

    .menu-icon div {
        width: 25px;
        height: 3px;
        background-color: black;
        margin: 4px;
        transition: 0.4s;
    }
}
