﻿html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    width: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.space {
    margin: 0 auto;
    padding-inline: 10vh;
    width: 100%;
    box-sizing: border-box;
}

header {
    display: flex;
    align-self: flex-start;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 10px;
    width: 100%;
}
    header > div {
        display: flex;
        align-items: baseline;
        justify-content: center;
        width: auto;
        margin: 0;
        padding: 0;
    }

#companyLogo {
    width: 50%;
    min-width: 300px;
    max-width: 400px;
    margin: 0;
}

.header-nav {
    padding-left: 40%;
}

.header-nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
}

    

.header-nav li a {
    display: inline-block;
    color: #013253;
    text-align: center;
    padding: 10px 12px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
}

    .header-nav li a:hover {
        background-color: #00ADEF;
        color: #FFFFFF;
    }

#facebook-icon img {
    width: 50%;
    max-width: 150px;
    min-width: 50px;
    height: auto;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid #ccc;
    margin-top: 0;
    padding-bottom: 30px;
    width: 100%;
}

section#about {
    padding-top: 100px;
    padding-bottom: 100px;
}

.heading {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
    width: 100%;
    padding-top: 100px;
    padding-bottom: 100px;
}

.heading div h1 {
    color: #00ADEF;
    font-weight: 800;
    font-size: 2em;
    margin-top: 50px;
}

.heading div p {
    color: #E6E6E6;
    font-size: 1.2em;
    margin-bottom: 50px;
}

.contGridServices {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    justify-content: center;
    padding: 0;
}

.gridItemServices {
    text-align: center;
    font-size: 0.8em;
    color: #013253;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contServicesIcon {
    width: 100px;
    height: auto;
    border-radius: 50%;
    overflow: hidden;
    margin: 0;
    object-fit: cover;
}

.backgroundScroll {
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.image-credit {
    display: flex;
    font-size: 0.8em;
    color: white;
    margin: 0;
    padding-bottom: 20px;
}

.image-credit a {
    text-decoration: none;
    color: #00ADEF;
    margin-left: 5px;
}

.sectionTitle {
    font-weight: 900;
    font-size: 3em;
    text-align: center;
    margin-bottom: 50px;
    color: #00ADEF;
}

#home.backgroundScroll {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('img/home-bg.jpg');
}

#about.backgroundScroll {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('img/img-about.jpg');
}

#ehmspe-title.backgroundScroll {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('img/ehmspe01.jpg');
}

#eFeatures.backgroundScroll {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('img/ehmspe02.jpg');
}

#ePartnership.backgroundScroll {
    background-image: linear-gradient(rgba(230, 230, 230, 0.5), rgba(230, 230, 230, 0.5)), url('img/ehmspe03.jpg');
    color: #013253;
}

#esk-home.backgroundScroll {
    background-image: linear-gradient(rgba(230, 230, 230, 0.5), rgba(230, 230, 230, 0.5)), url('img/ehmspe03.jpg');
    color: #013253;
}




.filters {
    margin: 0;
}

    .filters button {
        background: #f1f1f1;
        border-radius: 6px;
        border: none;
        padding: 10px 20px;
        margin: 0;
        cursor: pointer;
        color: #00aaff;
    }

        .filters button:hover {
            background-color: #00ADEF;
            color: white;
        }

.projectList {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    justify-content: center;
    margin-bottom: 100px;
    margin-top: 20px;
}

.projectItem {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    width: auto;
    height: auto;
}

    .projectItem img {
        width: 70px;
        height: auto;
    }

    .projectItem h3 {
        color: #00ADEF;
    }

    .projectItem p {
        color: #013253;
    }

.eRedirect {
    cursor: pointer;
    text-decoration: underline #013253 2px;
}

#homeAbout {
    font-size: 1.5em;
    color: #E6E6E6;
}

.googleMap {
    width: 100%;
    height: 400px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

section#ehmspe-title h1 {
    padding-top: 250px;
    padding-bottom: 150px;
    font-size: 3em;
}

.contDescription {
    padding-top: 200px;
    padding-bottom: 200px;
    color: #013253;
    font-size: 2em;
}

.contGridEFeatures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
    width: 100%;
    margin-top: 200px;
    margin-bottom: 100px;
}

.contEFeaturesIcon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #00ADEF;
    object-fit: cover;
}

.gridItemEFeatures {
    text-align: center;
    font-weight: bold;
    letter-spacing: 3px;
    color: #00ADEF;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .gridItemEFeatures p {
        margin-top: 20px;
    }

.contImage {
    margin: 0;
    padding: 0;
    width: 100%;
}

    .contImage img {
        width: 100%;
        height: auto;
    }

#philhealth {
    width: 400px;
    height: auto;
}

p#philhealth-description {
    font-size: 2.5em;
    font-weight: bold;
}

.contGridContactInfo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-content: left;
    width: 100%;
}

.gridItemContactInfo {
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: start;
}

    .gridItemContactInfo h1 {
        margin-top: 10px;
        padding-top: 10px;
    }

.contact-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 20px;
}

.contact-info, .newsletter {
    width: 45%;
    padding: 10px;
    box-sizing: border-box;
}

    .contact-info ul {
        list-style: none;
        padding: 0;
    }

    .contact-info li {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
    }

        .contact-info li img {
            margin-right: 10px;
            width: 20px;
        }

.contContactInfo {
    display: flex;
    flex-direction: column;
    width: 500px;
}

.contactInfoItem {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contactInfoIcon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

    .contactInfoIcon Img {
        width: 100%;
        height: 100%;
    }


.contEmail {
    display: flex;
    flex-direction: row;
    width: 300px;
}

input[type='email'] {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    width: 300px;
}

button#submit {
    padding: 10px 20px;
    background: linear-gradient(to left, #969696, #0094D3);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    width: 130px;
}

.backToTop {
    position: fixed;
    bottom: 20px;
    right: 30px;
    display: none;
    background-color: #00ADEF;
    color: white;
    font-size: 1em;
    border: none;
    border-radius: 55px;
    padding: 10px;
    cursor: pointer;
    width: auto;
    height: auto;
    opacity: 50%;
    transition: opacity 0.3s ease-in-out;
}


@media (max-width: 1302px) {
    header {
        flex-direction: row;
        align-items: center;
        padding: 0;
    }

        header > div {
            flex-direction: row;
            gap: 20px;
            align-items: center;
        }

    .header-nav ul {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .facebook-icon {
        margin: 0;
        text-align: center;
    }

        .facebook-icon img {
            width: 15%;
            min-width: 30px;
        }
}

/*=================================================================================*/
@media (max-width: 1440px) {

    #companyLogo {
        margin: 0;
        padding: 0;
    }

    .header-nav li a {
        font-size: 1rem;
        font-weight: bold;
    }

    .header-nav {
        padding: 0;
        margin: 0;
    }

    #facebook-icon img {
        padding: 0;
    }
}
    @media (max-width: 1024px) {
        header {
            flex-direction: column;
            padding: 0;
        }

            header > div {
                flex-direction: column;
                gap: 10px;
                align-items: center;
                justify-content: center;
            }

        #companyLogo {
            padding: 0;
        }

        #facebook-icon {
            margin: 0;
            padding: 0;
            text-align: center;
        }

            .facebook-icon img {
                width: 15%;
                height: auto;
                margin: 0;
            }

       

        .projectItem {
            width: 100%;
            height: auto;
            margin: 0;
        }
    }

    /*==========================================================================================*/

    @media (max-width: 768px) {
        header {
            flex-direction: column;
            padding: 0;
        }

            header > div {
                flex-direction: column;
                gap: 10px;
                justify-content: center;
            }

        .header-nav li a {
            padding-left: 10%;
            font-size: 0.5em;
        }

        section#about {
            padding-top: 10px;
            padding-bottom: 10px;
            font-size: 0.6em;

        }


        .backgroundScroll {
            background-size: cover;
            background-repeat: no-repeat;
            background-attachment: fixed;
            background-position: center;
            box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
        }

        #facebook-icon img {
            padding: 0;
        }

        #companyLogo {
            padding: 0;
            margin-top: 10px;
            width: 180px;
        }

        .heading {
            flex-direction: column;
            gap: 10px;
            margin: 0;
        }

            .heading div h1 {
                font-size: 1em;
                margin-top: 20px;
                padding: 0;
            }

            .heading div p {
                font-size: 0.5em;
                padding: 0;
                margin: 0;
            }

        .image-credit {
            display: flex;
            font-size: 0.4em;
            color: white;
            margin: 0;
            padding-bottom: 0;
            padding-top: 10px;
        }

        .sectionTitle {
            font-size: 1.6em;
        }

        .contGridServices {
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        }

        .gridItemServices {
            font-size: 0.5em;
        }

        .contServicesIcon {
            width: 40px;
            height: auto;
            border-radius: 50%;
            overflow: hidden;
            margin: 0;
        }

        .filters {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 5px;
            margin: 0;
        }

            .filters button {
                background: #f1f1f1;
                border-radius: 6px;
                border: none;
                padding: 5px 10px;
                margin: 0;
                cursor: pointer;
                color: #00aaff;
                font-size: 0.3em;
            }

        .projectList {
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            justify-items: center;
            gap: 25px;
            margin-bottom: 20px;
            margin-top: 10px;
            font-size: 0.7em;
        }

        .projectItem {
            width: 100%;
            height: auto;
            margin: 0;
        }

        .contDescription {
            padding: 0;
            margin: 0;
        }

        .contGridContactInfo {
            font-size: 0.5em;
        }

        .footer {
            font-size: 0.3em;
        }
    }